블로그 이미지
윤영식
Full Stacker, Application Architecter, KnowHow Dispenser and Bike Rider

Publication

Category

Recent Post

2013. 6. 7. 14:16 Dev Environment/Sublime Text

1. 맥

General

⌘Tgo to file
⌘⌃Pgo to project
⌘Rgo to methods
⌃Ggo to line
⌘KBtoggle side bar
⌘⇧Pcommand prompt
⌃ `python console
⌘⇧Nnew window (useful for new project)

Editing

⌘Lselect line (repeat select next lines)
⌘Dselect word (repeat select others occurrences in context for multiple editing)
⌃⇧Mselect content into brackets
⌘⇧↩insert line before
⌘↩inter line after
⌃⇧Kdelete line
⌘KKdelete from cursor to end of line
⌘K⌫delete from cursor to start of line
⌘⇧Dduplicate line(s)
⌘Jjoin lines
⌘KUupper case
⌘KLlower case
⌘ /comment
⌘⌥ /block comment
⌘Yredo or repeat
⌘⇧Vpast and ident
⌃ spaceautocomplete (repeat to select next suggestion)
⌃Mjump to matching brackets
⌘Usoft undo (movement undo)
⌘⇧Usoft redo (movement redo)

XML/HTML

⌘⇧Aselect content into tag
⌘⌥ .close tag

Find/Replace

⌘Ffind
⌘⌥Freplace
⌘⌥Gfind next occurrence of current word
⌘⌃Gselect all occurrences of current word for multiple editing
⌘⇧Ffind in files

Splits/Tabs

⌘⌥1single column
⌘⌥2two columns
⌘⌥5grid (4 groups)
⌃[1,2,3,4]focus group
⌃⇧[1,2,3,4]move file to group
⌘[1,2,3…]select tab

Bookmarks

⌘F2toggle bookmark
F2next bookmark
⇧F2previous bookmark
⌘⇧F2clear bookmarks

Marks

⌘K spaceset mark // ⌘K; for me
⌘KWdelete from cursor to mark
⌘KAselect from cursor to mark
⌘KGclear mark




2. 윈도우

Sublime Text 2 shortcut
영어한글단축키설명
New File새파일Ctrl+N새문서나 새파일을 만듬.
Open File열기Ctrl+O새문서나 새파일을 열기
Open Folder폴더열기폴더열기
Open Recent최근문서열기최근문서열기
Reopen with Encoding인코딩해서 다시열기인코딩해서 다시열기
New View into File새로보기현재의 문서를 새탭에 열러서 새로보기
Save저장Ctrl+S저장
Save with Encoding인코딩해서 저장현재의 문서 인코딩변경해서 저장
Save as새로 저장Ctrl+Shift+S다른 이름으로 저장
Save All모두저장모두저장
New Window새창으로 열기Ctrl+Shift+N에디터를 두개이상 실행하고자 할때 새창으로 열기
Close Window새창 닫기Ctrl+Shift+W탭이 아닌 창으로 닫기
Close File닫기Ctrl+W탭 또는 창 닫기
Revert File파일되돌리기수정되기전으로 파일을 되돌립니다.
Colse All Files모든파일닫기모든 파일 닫기
Exit나가기나가기
Undo Insert Characters문자삽입취소Ctrl+Z삽입한 문자를 취소할때 사용합니다
Repeat Insert Characters문자삽입반복Ctrl+Y문자 삽입 반복
Undo Insert Characters문자삽입취소Ctrl+U문자 삽입 취소
Soft RedoCtrl+Shift+U소프트 다시 실행
Copy복사Ctrl+C복사
Cut자르기Ctrl+X자르기
Paste붙여넣기Ctrl+V붙여넣기
Paste and indent붙여 넣기 및 들여 쓰기Ctrl+Shfte+V붙여 넣기 및 들여 쓰기
Indent들여쓰기Ctrl+]들여쓰기
Unindent내어 쓰기Ctrl+[내어 쓰기
Reindent다시들여쓰기들어쓰기나 내어쓰기한 경우 다시 되돌리는 기능
Swap Line Up한줄위로Ctrl+Shift+Up현재의 행을 윗행과 교체합니다
Swap Line Down한줄아래로Ctrl+Shift+Down현재의 행을 아랫행과 교체합니다
Duplicate Line행 복사Ctrl+Shift+D현재의 행을 아래에 복사해서 붙여넣어줌
Delete Line행 삭제Ctrl+Shift+K현재의 행을 삭제하고 위로 이동함.
Join Lines행 합침Ctrl+J다음줄을 현재의 줄에 합류시킵니다.
Toggle Comment주석 전환Ctrl+/주석을 만들고 없애는 기능
Toggle Block CommentCtrl+Shift+/요소가 포함된 블럭 전체를 주석처리함.
Insert Line BeforeCtrl+Shift+Enter블럭 앞에 행 삽입
Insert Line AfterCtrl+Enter블럭 뒤에 행 삽입
Delete Word ForwardCtrl+Delete커서 뒤 단어 삭제
Delete Word BackwardCtrl+Backspace커서 앞 단어 삭제
Delete Line한줄삭제Ctrl+Shift+K한줄을 삭제합니다
Delete to End끝단어삭제Ctrl+K,Ctrl+k커서 다음부터 끝줄까지 삭제
Delete to Beginning앞단어삭제Ctrl+k,Ctrl+Backspace커서 앞에 있는줄까지 삭제
Transpose바꾸기Ctrl+T커서 왼쪽과 오른쪽 단어를 바꿈
Close Tag태그닫기Alt+.열려있는 태그요소 닫기
Expand Selection to TagCtrl+Shift+A현재 커서가 위치한 요소의 전체 블럭을 선택영역으로 만들기
Wrap Selection With Tag태그 묶음 선택Alt+Shift+W
Set Mark마크설정Ctrl+K,Ctrl+Space번호 마크를 생성합니다
Select To Mark마크 선택Ctrl+K,Ctrl+A현재커서부터 마크까지 선택
Delete To Mark마크삭제Ctrl+K,Ctrl+W만들어놓은 마크를 삭제합니다
Swap With Mark마크교체Ctrl+K,Ctrl+X전에있던 마크를 현재있던 곳으로 교체합니다
Clear Mark마크삭제Ctrl+K,Ctrl+G있던 마크를 삭제합니다
YankCtrl+k,Ctrl+Y마크영역을 현재 요소안에 삽입합니다
Fold접기Ctrl+Shfit+[바로 위 부모까지 접기
Unfold펴기Ctrl+Shift+]바로 아래 자식까지 펴기
Unfold All모두 펴기Ctrl+K,Ctrl+j모두 펴기
Fold All모두접기Ctrl+K,Ctrl+1빈줄없이 모두 접습니다
Fold Level 2Ctrl+K,Ctrl+2
Fold Level 3Ctrl+K,Ctrl+3
Fold Level 4Ctrl+K,Ctrl+4
Fold Level 5Ctrl+K,Ctrl+5
Fold Level 6Ctrl+K,Ctrl+6
Fold Level 7Ctrl+K,Ctrl+7
Fold Level 8Ctrl+K,Ctrl+8
Fold Level 9Ctrl+K,Ctrl+9
Fold Tag AttributesCtrl+K,Ctrl+T현재 블럭에 있는 어트리뷰트 태그요소를 접습니다
Title Case첫문자만 대문자로 만듭니다
Upper CaseCtrl+K,Ctrl+U대문자로 만듭니다
Lower Case소문자화Ctrl+K,Ctrl+L소문자로 만듭니다
Swap Case대문자를 소문자로, 소문자를 대문자로 변환
Wrap Paragraph at RulerAlt+Q들여쓰기가 모아짐
Show CompletionsCtrl+Space자동완성 툴팁 표시
Sort LinesF9라인에 맞쳐정렬
Sort Lines(Case Sensitive)Ctrl+F9라인에 맞쳐정렬(대소문자 구분)
Split into LinesCtl+Shift+L선으로 분할
Add Previous LineCtrl+Alt+Up커서를 위로 한행 추가하여 준비합니다
Add Next LineCtrl+Alt+Down커서를 아래로 한행 추가하여 준비합니다
Single Selection단일선택Escape단일 선택
Select All모두선택Ctrl+A모두 선택
Expand Selection to Line행선택Ctrl+L행으로 선택영역을 확장합니다
Expand Selection to Word단어선택Ctrl+D단어로 선택영역을 확장합니다
Expand Selection to ScopeCtrl+Shift+Space범위에 있는 모든것으로 선택을 확장합니다
Expand Selection to BracketsCtrl+Shift+M
Expand Selection to IndentationCtrl+Shift+J들여 쓰기로 선택영역 확장
Expand Selection to TagCtrl+Shift+A태그영역안까지 선택영역 확장
Find찾기Ctrl+F찾기
Find Next다음찾기F3다음찾기
Find PreviousShift+F3
Incremental Find이전찾기Ctrl+I이전 찾기
Replace대체Ctrl+H문자열을 대체할때 사용합니다.
Replace Next전부대체Ctrl+Shift+H한번에 모든 문자열을 대체합니다
Quick Find빨리찾기Ctrl+F3빨리찾기
Quick Find AllAlt+F3빠른 모두 찾기
Quick Add NextCtrl+K,Ctrl+D빠른 다음 추가
Use Selection for FindCtrl+E
Use Selection for ReplaceCtrl+Shift+E
Find in FilesCtrl+Shift+F파일에서 원한는 영역찾고, 대체하기
Show Results Panel결과 패널 표시
Next ResultF4다음 결과
Previous ResultShift+F4이전 결과
Side BarCtrl+K,Ctrl+B사이드바 열기 닫기
Show Console콘솔 보기Ctrl+`에디터에서 사용하는 콘솔 보기
Enter Full ScreenF11전체 화면으로 전환
Enter Distraction Free ModeShift+F11전체화면에서 가운데에 위치한 모드로 전환
Single싱글Alt+Shift+1에디터 하나로 보기
Columns:2컬럼:2Alt+Shift+2좌우로 두개의 컬럼으로 보기
Columns:3컬럼:3Alt+Shift+3좌우로 세개의 컬럼으로 보기
Columns:4컬럼:4Alt+Shift+4좌우로 네개의 컬럼으로 보기
Rows:2Alt+Shift+8상하로 두개의 컬럼으로 보기
Rows:3Alt+Shift+9상하로 세개의 컬럼으로 보기
Grid:4Alt+Shift+5상하로 네개의 컬럼으로 보기
Group 1Ctrl+1
Group 1Ctrl+Shift+1
Spell CheckF6맞춤법 검사
Next MisspellingCtrl+F6다음 철자 오류
Prev MisspellingCtrl+Shift+F6이전 철자 오류
Goto AnythingCtrl+P바로가기
Goto SymbolCtrl+R심볼 바로가기
Goto LineCtrl+G행 바로가기
Next FileCtrl+Pagedown다음 탭으로 가기
Previous FileCtrl+Pageup이전 탭으로 가기
Next File in StackCtrl+Tab다음문서에서 스택으로 바로가기
Previous File in StackCtrl+Shift+Tab이전문서에서 스택으로 바로가기
Switch HeaderAlt+O해더 타이틀 변경
Scroll to SelectionCtrl+K,Ctrl+C커서가 있는 곳으로 스크롤
Line Up한줄올림Ctrl+Up보여지는 영역이 한줄 올라감
Line Down한줄내림Ctrl+Down보여지는 영역이 한줄 내려감
toggle BookmarkCtrl+F2책갈피 전환
Next BookmarkF2다음 책갈피
Prev BookmarkShift+F2이전 책갈피
Clear BookmarksCtrl_Shift+F2책갈피 삭제
Select All BookmarksAlt+F2모든 책갈피를 선택
Jump to Matching BracketCtrl+M일치하는 브라켓으로 이동
Command Palette..명령 팔레트Ctrl+Shift+P명령 팔레트를 불러옴
Build생성Ctrl+B새로운 형식으로 생성함
Cancel Build생성취소Ctrl+Break생성취소
Show Build Results생성한 결과 보기
Next ResultF4다음 결과 보기
Previous ResultShift+F4이전 결과 보기
Record Macro매크로기록Ctrl+Q매크로 기록을 시작함.
Playback MacroCtrl+Shift+Q매크로 재생
Save Macro매크로 저장
Macro매크로
Open Project프로젝트열기프로젝트 열기
Clear Items아이템 삭제
Switch Project in WindowCtrl+Alt+P새로운 윈도우를 열어서 프로젝트 전환함
Save Project As..프로젝트 저장
Close Project프로젝트 닫기
Edit Project프로젝트 편집
Add Folder to Project프로젝트에 폴더 추가
Remove all Folders..모든 폴더를 삭제
Refresh Folders폴더 새로 고침
Browse Packages브라우져패키지플러그인이 들어있는 폴더 열기
Settings-Default기본 설정
Settings-User사용자 설정
Syntax Specific-User사용자 문법
Distraction Free-User
Key Bindings-Default키 바인딩 기본설정
Key Bindings-User키 바이딩 사용자설정
Create Public Gist..Ctrl+K,Ctrl+I발행할 Gist 만들기
Create Private Gist..Ctrl+K,Ctrl+P개인적인 Gist 만들기
Open Gist..Ctrl+K,Ctrl+OGist 열기
Insert Gist..Ctrl+K,Ctrl+[Gist 삽입
Add File to Gist..Ctrl+K,Ctrl+]

Gist에 파일 첨부


<참조>

  - 원문 : http://demun.tistory.com/2239

posted by 윤영식
2013. 3. 12. 17:41 카테고리 없음

Sublime Text 2에서 Node.js 수행을 위한 Path 설정하기 


1) 설정 

  - Ctrl + Shift + P => "Nodejs::Default File Settings" 검색하여 환경파일 오픈 (Node.js.sublime-settings)

// 기본 설정 내역

{

  // save before running commands

  "save_first": true,

  // if present, use this command instead of plain "node"

  // e.g. "/usr/bin/node" or "C:\bin\node.exe"

  "node_command": false,

  // Same for NPM command

  "npm_command": false,


  "expert_mode": false,


  "ouput_to_new_tab": false

}


// 변경 설정 내역 

{

  // save before running commands

  "save_first": true,

  // if present, use this command instead of plain "node"

  // e.g. "/usr/bin/node" or "C:\bin\node.exe"

  "node_command": "/usr/local/bin/node",

  // Same for NPM command

  "npm_command": false,


  "expert_mode": false,


  "ouput_to_new_tab": false

}


2) 실행

  - Ctrl + R 



<참조> 

  - 원문 http://stackoverflow.com/questions/12124544/can-not-run-node-app-with-nodejs-sublime-plugin

posted by 윤영식
2013. 3. 12. 17:31 Dev Environment/Sublime Text

Sublime Text에서 코딩한 코드를 Command Line으로 수행하고 싶을 경우 Terminal을 hot key로 띄워서 수행 할 수 있다. 


  - 참조 : Terminal을 띄우기 위한 설정

  - Install Package에서 "Terminal"이라고 타입핑하고 설치한다 

    + mac : command + shift + p  => Install Package => Terminal 입력

// git clone 을 통하여 sublime_terminal을 다운로드 받는다 

/Users/xxx/Applications> git clone https://github.com/wbond/sublime_terminal.git

Cloning into 'sublime_terminal'...

Unpacking objects: 100% (99/99), done.


// Sublime Text > Preferences > Package Settings > Terminal > Settings Defaults 에서 iTerm.sh를 설정한다 

// iTerm.sh 연결

{

// The command to execute for the terminal, leave blank for the OS default

// On OS X the terminal can be set to iTerm.sh to execute iTerm

"terminal": "/Users/nulpulum/Applications/sublime_terminal/iTerm.sh",


// A list of default parameters to pass to the terminal, this can be

// overridden by passing the "parameters" key with a list value to the args

// dict when calling the "open_terminal" or "open_terminal_project_folder"

// commands

"parameters": []

}

  

  - 소스 코드를 저장하고 ctrl + shift + t 를 클릭하면 코드가 있는 Path로 Terminal이 열린다 


<참조>

  - 소스 : https://github.com/wbond/sublime_terminal

posted by 윤영식
2013. 3. 12. 17:14 Dev Environment/Sublime Text

Mac OS에서 Sublime Text 2 를 Terminal 에서 바로 수행시키는 방법


1) 설정

// 심볼릭 링크 걸기

$ ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime


// 로그인 계정에 PATH 설정

$ vim .bash_profile 

export PATH=/usr/local/bin:{...}



2) 수행하기 

  - 파일 열기 : sublime <filename>

  - 특정 디렉토리 열기 : sublime <directory name>

  - 현재 디렉토리 열기 : sublime



<참조>

  - 원문 https://gist.github.com/artero/1236170

posted by 윤영식
2013. 2. 2. 17:22 Dev Environment/Sublime Text

Syntax에 대한 highlight 기능을 위하여 Jade와 Stylus 플로그인을 설치한다 


1) Sublime Text의 Package 디렉토리로 이동

  - 위치 : Sublime Text의 메뉴에서 Preferences > Browse Packages... 선택하면 이동한다 

  - 해당 위치에서 플러그인을 설치한다 



2) Jade 플로그인 설치 

$ git clone https://github.com/miksago/jade-tmbundle.git Jade

Cloning into 'Jade'...

remote: Counting objects: 139, done.

remote: Compressing objects: 100% (71/71), done.

remote: Total 139 (delta 59), reused 120 (delta 44)

Receiving objects: 100% (139/139), 18.63 KiB, done.

Resolving deltas: 100% (59/59), done.


  - Jade 확장자 파일을 연다 

  - ctr+shift+p 에서 jade라고 타입핑하고 'Set Syntax: Jade' 선택하면 highlighting 된다 

  



3) Stylus 플러그인 설치 

$ git clone https://github.com/LearnBoost/stylus.git Stylus

Cloning into 'Stylus'...

remote: Counting objects: 15849, done.

remote: Compressing objects: 100% (5401/5401), done.

remote: Total 15849 (delta 10322), reused 15R609 (delta 10117)eceiving objects

Receiving objects: 100% (15849/15849), 2.36 MiB | 121 KiB/s, done.

Resolving deltas: 100% (10322/10322), done.

Checking out files: 100% (658/658), done.


  - styl 확장자 파일을 연다 

  - ctr+shift+p 에서 stylus라고 타입핑하고 'Set Syntax: Stylus' 선택하면 highlighting 된다 

  


<참조>

  - 원문 : http://stackoverflow.com/questions/7666977/syntax-highlighting-for-jade-in-sublime-text-2

posted by 윤영식
2013. 1. 30. 21:42 Dev Environment/Sublime Text

Sublime Text 2에서 CoffeeScript를 빌드하고 Syntax Highlighting 기능을 사용하기 위하여 CoffeeScript 플러그인을 설치해 보자 


1) 플로그인 설치 

  - 하기 내역을 ctrl + `  누르면 sublime text 하단에 command 입력란이 나온다 => copy & paste => enter key를 치면 설치

  - ctrl + shift + p => install package 이동 => coffeescript 타입핑 하여 필요한 coffeescript 플로그인을 설치한다 

  - .coffee 파일을 오픈하면 Syntax Highlighting 이 되어 있다. (잘 안되면 하단의 참조 원문 보고 진행)

  - sublime text 메뉴 tool => build system => Automatic 으로 설정

import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation


2) Short Key

alt+shift+t - Run a Cake task
alt+shift+r - Run some CoffeeScript (puts/print is available for output)
alt+shift+s - Run a syntax check
alt+shift+c - Compile a file
alt+shift+d - Display compiled JavaScript
alt+shift+l - Display lexer tokens
alt+shift+n - Display parser nodes
alt+shift+w - Toggle watch mode
alt+shift+p - Toggle output panel


<참조>

  - 설정 원문 : CoffeeScript Install Using Package Installation

  - 참조 원문 : CoffeeScript Setting

posted by 윤영식
prev 1 next