본문 바로가기
TIP

Visual Studio Code Shortcut 및 key binding 설정

by 강깅꽁 2021. 3. 30.

 

keybinding.json에 설정

파일 -> 기본 설정 -> 바로가기 키 -> 오른쪽 상단 종이 아이콘 클릭

[

   {
      // 줄 선택
      "key": "shift+end",
      "command": "cursorEndSelect",
      "when": "textInputFocus"
    },

    { // 라인 끝으로 이동

        "key": "alt+s",

        "command": "cursorLineStart"

    },

    { // 라인 시작으로 이동

        "key": "alt+e",

        "command": "cursorLineEnd"

    },

    { // 선택된 코드만 실행

        "key": "ctrl+alt+r",

        "command": "workbench.action.terminal.runSelectedText"

    },

    { // 10줄 위로 이동

        "key": "ctrl+up",

        "command": "cursorMove",

        "args": {

            "to": "up",

            "by": "line",

            "value": 10

        },

        "when": "editorTextFocus"

    },

    { // 10줄 아래로 이동

        "key": "ctrl+down",

        "command": "cursorMove",

        "args": {

            "to": "down",

            "by": "line",

            "value": 10

        },

        "when": "editorTextFocus"

    },

    { // panel 최대화

        "key": "ctrl+win+oem_3",

        "command": "workbench.action.toggleMaximizedPanel"

    },

    { // 에디터 그룹 크기 조절 ctrl + shift + /

        "key": "ctrl+shift+oem_2",

        "command": "workbench.action.toggleEditorWidths"

    },

]

 

shortcut

Ctrl + Tab 열려 있는 파일 선택
Alt + Left | Right 똑같음

편집기

Ctrl + PageDown 그룹에서 다음 편집기 열기
Ctrl + PageUP 그룹에서 이전 편집기 열기
Ctrl + 1 첫 번째 편집기 그룹에 포커스
Ctrl + Alt + RightArrow 편집기를 다음 그룹으로 이동
정의로 이동

Ctrl + Click 정의 되어 있는 파일 열기
Ctrl + Alt + Click 정의 되어 있는 파일 사이드로 열기
================
Ctrl+T Symbol이 있는 파일 목록 및 navigate

Alt + F12 정의 간단히 보기

Ctrl + Shift + \ 매칭되는 괄호 찾기

F2 Symbol 이름 변경

Ctrl + Shift + M 에러, 경고 메시지 패널 보기
F8 | Shift + F8 에러, 경고 메시지 inline