행위

Sublime

DB CAFE

Dbcafe (토론 | 기여)님의 2019년 2월 14일 (목) 23:20 판 (서브라임(sublime) 편집기)
thumb_up 추천메뉴 바로가기


1 서브라임(sublime) 편집기[편집]

1.1 Tips[편집]

https://spoqa.github.io/2015/11/23/sublime-basic-tip.html

  1. Sublime Text 3 - Useful Shortcuts (Windows)
    1. General

| Shortcut | Description | | ---------| ----------- | | Ctrl+Shift+P | command prompt | | Ctrl+Alt+P | switch project | | Ctrl+P | go to file | | Ctrl+G | go to line | | Ctrl+R | go to methods | | Ctrl+Shift+R | go to methods in project | | Ctrl+KB | toggle side bar | | Ctrl+` | toggle console | | Ctrl+Shift+N | new window |

    1. Editing

| Shortcut | Description | | ---------| ----------- | | Ctrl+L | select line (repeat select next lines) | | Ctrl+D | select word (repeat select others occurrences in context for multiple editing) | | Ctrl+Alt+Up / Ctrl+Alt+Down | select column for multiple editing | | Ctrl+Shift+M | select content into brackets | | Ctrl+Shift+Enter | insert line before | | Ctrl+Enter | inter line after | | Ctrl+Shift+K | delete line | | Ctrl+KK | delete from cursor to end of line | | Ctrl+KBackspace | delete from cursor to start of line | | Ctrl+Shift+D | duplicate line(s) | | Ctrl+J | join lines | | Ctrl+KU | upper case | | Ctrl+KL | lower case | | Ctrl+/ | comment line | | Ctrl+Shift+/ | block comment | | Ctrl+Y | redo or repeat | | Ctrl+C | copy | | Ctrl+V | paste | | Ctrl+Shift+V | paste and ident | | Ctrl+Space | autocomplete (repeat to select next suggestion) | | Ctrl+M | jump to matching brackets | | Ctrl+U | soft undo (movement undo) | | Ctrl+Shift+U | soft redo (movement redo) |

    1. Code navigation

| Shortcut | Description | | ---------| ----------- | | F12 | go to definition | | Alt+- | jump back | | Alt+Shift+- | jump forward |

    1. XML / HTML

| Shortcut | Description | | ---------| ----------- | | Ctrl+Shift+A | select content into tag | | Alt+. | close tag |

    1. Find / Replace

| Shortcut | Description | | ---------| ----------- | | Ctrl+F | find | | Ctrl+I | incremental find | | Ctrl+H | replace | | F3 | find next occurrence of searched word | | Ctrl+F3 | find next occurrence of current word | | Alt+F3 | select all occurrences of current word for multiple editing | | Ctrl+Shift+F | find in files |

    1. Navigation

| Shortcut | Description | | ---------| ----------- | | Ctrl+0 | focus on sidebar | | Esc | focus back to edit area when focus on sidebar |

    1. Splits / Tabs

| Shortcut | Description | | ---------| ----------- | | Alt+Shift+1 | single column | | Alt+Shift+2 | two columns | | Alt+Shift+5 | grid (4 groups) | | Ctrl+[1,2,3...] | focus group | | Ctrl+Shift+[1,2,3...] | move file to group | | Alt+[1,2,3...] | select tab |

    1. Bookmarks

| Shortcut | Description | | ---------| ----------- | | Ctrl+F2 | toggle bookmark | | F2 | next bookmark | | Shift+F2 | previous bookmark | | Ctrl+Shift+F2 | clear bookmarks |

    1. Marks

| Shortcut | Description | | ---------| ----------- | | Ctrl+KSpace | set mark | | Ctrl+KW | delete from cursor to mark | | Ctrl+KA | select from cursor to mark | | Ctrl+KG | clear mark |

    1. More

Go to `Preferences` → `Key Bindings - Default` to explore all default shortcuts and read instructions for packages you installed to find out about their custom key bindings.

1.2 단축키[편집]

  1. 줄편집 단축키
 * Ctrl-Alt Up or Ctrl-Alt-Down
    1. 서브라임 텍스트 단축키 정리

Editing 단어 편집 단축키 단축키 설명

Ctrl+D	커서가 위치한 단어를 선택하고, 동일한 단어를 순차적으로 연속해서 선택(다중편집 모드)
Ctrl+K	선택된 단어를 선택해제(다중편집 모드)
Alt+F3	선택된 단어와 같은 단어를 문서에서 모두 선택(다중편집 모드)
Ctrl+U	선택된 단어를 역순으로 선택해제(다중편집 모드)
ESC	단어 선택 모드를 해제
표 제목 표 제목 표 제목
예시 예시 예시
예시 예시 예시
예시 예시 예시
    1. 줄 선택 단축키
단축키 설명 Ctrl+L 줄 선택, 줄 반복 선택 Ctrl+Shift+L 선택 영역을 다중 편집 가능한 상태로 전환(다중편집 모드) Ctrl+Alt+(up, down) 다중 편집 가능한 상태로 줄 선택(다중편집 모드) Ctrl+Shift+M Brace 범위 안의 내용 선택 Ctrl+Shift+J 들여쓰기 레벨이 동일한 내용 선택 Ctrl+Shift+A 선택된 범위의 부모요소 선택 Ctrl+M 쌍을 이루는 괄호의 여는 위치와 닫는 위치로 반복 이동
    1. 줄 편집 단축키

단축키 설명

Ctrl+Shift+D	줄 복사
Ctrl+Shift+K	줄 삭제
Ctrl+KK	커서부터 줄 끝까지 삭제
Ctrl+K+Backspace	커서부터 줄 처음까지 삭제
Ctrl+X	줄 잘라내기
Ctrl+Shift+Up	줄 위로 이동
Ctrl+Shift+Down	줄 아래로 이동
Ctrl+Enter	다음 행에 줄 삽입
Ctrl+Shift+Enter	이전 행에 줄 삽입
Ctrl+J	다음 줄을 현재 라인으로 합침
Ctrl+]	들여쓰기
Ctrl+[	내어쓰기
    1. 그 밖의 편집

단축키 설명

Ctrl+Shift+[	코드블록 접기
Ctrl+Shift+]	코드블록 폅기
Ctrl+/	주석 처리/취소
Ctrl+Shift+/	선택 영역 블록 주석 처리/취소
Ctrl+Shift+V	들여쓰기 올바르게 붙여 넣기
Ctrl+Space	자동완성 제안
Alt+Shift+W	선택영역 HTML 태그 감싸기
Alt+.	현재 HTML 태그 닫기
Ctrl+K+U	대문자로 변경
Ctrl+K+L	소문자로 변경

Navigation/Gogo Anywhere 단축키 설명

Ctrl+P	빠른 파일 및 이름 검색
Ctrl+R	심볼 검색
Ctrl+;	단어 검색
Ctrl+G	라인 검색
Ctrl+R	프로젝트에서 심볼 검색
F12	정의 단어 바로가기
Alt+-	정의 단어 돌아가기
Ctrl+Shift+F	디렉토리 검색
Ctrl+H	찾아서 바꾸기
Ctrl+F	찾기

1.3 Layout & Group[편집]

1.3.1 Layout[편집]

단축키 설명

Alt+Shift+1	Single
Alt+Shift+2	Columns: 2
Alt+Shift+3	Columns: 3
Alt+Shift+4	Columns: 4
Alt+Shift+8	Rows: 2
Alt+Shift+9	Rows: 3
Alt+Shift+5	Grid: 4

Groups 단축키 설명

Ctrl+K, Ctrl+Right	다음 그룹으로 포커스 이동
Ctrl+K, Ctrl+Left	이전 그룹으로 포커스 이동
Ctrl+Number	생성된 그룹 순서로 포커스 이동

Focus Group 단축키 설명

Ctrl+K, Ctrl+Right	다음 그룹으로 포커스 이동
Ctrl+K, Ctrl+Left	이전 그룹으로 포커스 이동
Ctrl+Number	생성된 그룹 순서로 포커스 이동

Move File to Group 단축키 설명

Ctrl+K, Ctrl+Shift+Right	다음 그룹으로 파일 이동
Ctrl+K, Ctrl+Shift+Left	이전 그룹으로 파일 이동
Ctrl+Alt+Number	생성된 그룹 순서로 파일 이동

기타 Keypress Command

F11	전체화면
Ctrl+Shift+P	명령어 팔레트(Command Palette)
Ctrl+`	콘솔 보기(Show Console)
Ctrl+K+B	사이드바 토글(Show/Hide Sidebar)
Ctrl+keypad(+)	폰트 크게
Ctrl+Shift+keypad(+)	폰트 작게
Ctrl+W	탭 닫기
Ctrl+Shift+W	프로그램 종료

Emmet 단축키 단축키 설명

Ctrl-+ E	Expand Abbreviation - 축약어 확장
Shift+Ctrl+G	Wrap With Abbreviation - 축약어로 감싸는 태그 생성
Ctrl + ,	Match Tag Pair Outward - 쌍을 이루는 태그 안쪽을 선택
Shift+Ctrl+0	Match Tag Pair Inward - 쌍을 이루는 태그 바깥쪽을 선택(윈도우에서 작동안함)
Ctrl+Alt+J	Go to Matching Pair - 쌍을 이루는 태그로 이동
Ctrl+Alt+→ or Ctrl+Alt+←	Go to Edit Point - 이전, 다음 편집점으로 이동
Shift+Ctrl+. or Shift+Ctrl+,	Select Item - 이전, 다음 아이템 선택
Shift+Ctrl+/	Toggle Commend - 포인터가 위치한 곳이 포함하는 하위까지 주석처리
Shift+Ctrl+;	Remove Tag - 포인터가 위치한 곳의 시작태그와 끝맺음 태그를 삭제
Ctrl + U	Update Image Size - 이미지 너비와 높이 속성을 삽입
Shift+Ctrl+Y	Evaluate Math Expression - 사칙연산 실행
Shift+Ctrl+R	Reflect CSS Value - Vendor Prefix CSS 변경 값을 반영
Shift+Ctrl+'	Rename Tag - 태그 이름 변경
Ctrl + ↑	1씩 증가
Ctrl + ↓	1씩 감소
Alt + ↑	0.1씩 증가
Alt + ↓	0.1씩 감소
Shift+Alt+↑	10씩 증가
Shift+Alt+↓	10씩 감소

1.4 기능[편집]

  1. 줄 끝 공백 제거하기
User preference파일에 다음의 항목을 추가하면 파일 저장 시 자동으로 줄 끝 공백이 제거된다:

"trim_trailing_white_space_on_save": true

  1. 빈줄제거
Find and Replace Regular Expression을 클릭하고 ^\n을 찾아서 공백으로 바꾸기 선택

1.5 plugin[편집]

https://jos39.tistory.com/243 <comments />