0. 기본 단축키
https://code.visualstudio.com/docs/introvideos/basics
Getting started with Visual Studio Code
Download and learn the basics of Visual Studio Code.
code.visualstudio.com
영어 되시는 분들 : https://code.visualstudio.com/docs/getstarted/keybindings
Visual Studio Code Key Bindings
Here you will find the complete list of key bindings for Visual Studio Code and how to change them.
code.visualstudio.com
1. 기본 등록된 단축키 보기 및 변경: File > Preferences > Keyboard Shortcuts
2-1. 기본 등록된 단축키 변경 : 오른쪽 클릭 후 change keybinding 클릭
2-2. 바인딩 후 Enter
3-1. 기본 등록된 단축키 외 키 추가 하기
> keyboard Shotcuts 에서 Open Keyboad Shotcuts (JSON) 버튼 클릭
또는
> Command Palette (Ctrl+Shift+P) 를 연후 > Open Keyboard Shortcuts (JSON)>Enter
3-2. keyboard Shotcuts 에서 원하는 기능을 Copy 또는 Copy Command ID 를 한 후
3-3. keyboard Shotcuts (JSON) 에서 원하는 키를 추가해준다.
기본적으로 배열로 되어 있으며,
key, command, when 키로 구성되어 있다.
command 에 이름 그대로 있으면 추가고 -가 붙여 있으면 뺀다는 것이다(기본값 제거)
-없이 넣으면 기본값 + 내가 추가한 단축키로 단축키를 사용할 수 있다.
나만의 단축키
키 기능 | key | 언제 | 명령 ID |
기본 설정: 바로가기 키 열기 | "ctrl+k ctrl+s" | workbench.action.openGlobalKeybindings | |
모든 명령어 표시 및 찾기 & 바로가기 | "ctrl+shift+p" | workbench.action.showCommands & workbench.action.quickOpenNavigatePreviousInFilePicker |
|
일치 항목 찾기의 모든 항목 선택 | ctrl+shift+l | editorFocus | editor.action.selectHighlights |
변경 키
키 기능 | key | default Key | 명령 ID |
textInputFocus | "ctrl+oem_1" | "end" | cursorEnd |
keybindings.json
// 키 바인딩을 이 파일에 넣어서 기본값 재정의auto[]
[
{ // ctrl + ; 커서 맨끝으로
"key": "ctrl+oem_1",
"command": "cursorEnd",
"when": "textInputFocus"
},
{ // ctrl + ' 한줄 선택
"key": "ctrl+oem_7",
"command": "expandLineSelection",
"when": "textInputFocus"
},
{ // 한줄 선택 키 바인딩 제거
"key": "ctrl+l",
"command": "-expandLineSelection",
"when": "textInputFocus"
},
{ // 커서 왼쪽으로
"key": "ctrl+l",
"command": "cursorRight",
"when": "textInputFocus"
},
{ // python terminal에서 실행
"key": "ctrl+alt+enter",
"command": "python.execInTerminal",
"when": "textInputFocus"
}
]
'Tool > VS Code' 카테고리의 다른 글
[vscode] aws ec2 ssh 접속하기 (feat. Windows) (2) | 2022.01.28 |
---|---|
[VSCode] SSH 연결하기 (+ Docker Container 접근) (3) | 2021.12.02 |
[vscode] 원격지 docker container 연결하기 (WSL) (0) | 2021.10.22 |
[vscode] 원격지 docker container 연결하기 (0) | 2021.10.21 |
Visual Studio Code 설치 ~ 기본설정 (Window/nodejs) (0) | 2019.12.13 |