vim plugin을 사용해보려 했지만 아직 익숙하진 않아서
vim extension 삭제하고 keyboard shortcut 만들어봤습니다.
alt를 누르고 오른손을 이용해서 방향키, 페이지 업 다운, home, end가 가능하게 했습니다.
사용하다보니 키보드의 오른편에 갈일이 없어져서 좀더 편해진거 같아 공유하게 되었습니다.
// Place your key bindings in this file to override the defaults
// for WINDOW
[
// keyboard arrow cursor 이동
{
"key": "alt+p",
"command": "cursorUp",
"when": "editorTextFocus"
},
{
"key": "alt+;",
"command": "cursorDown",
"when": "editorTextFocus"
},
{
"key": "alt+l",
"command": "cursorLeft",
"when": "editorTextFocus"
},
{
"key": "alt+'",
"command": "cursorRight",
"when": "editorTextFocus"
},
{
"key": "shift+alt+p",
"command": "cursorUpSelect",
"when": "editorTextFocus"
},
{
"key": "shift+alt+;",
"command": "cursorDownSelect",
"when": "editorTextFocus"
},
{
"key": "shift+alt+l",
"command": "cursorLeftSelect",
"when": "editorTextFocus"
},
{
"key": "shift+alt+'",
"command": "cursorRightSelect",
"when": "editorTextFocus"
},
// 단어 cursor 이동
{
"key": "ctrl+alt+l",
"command": "cursorWordAccessibilityLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+'",
"command": "cursorWordAccessibilityRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+alt+l",
"command": "cursorWordAccessibilityLeftSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+alt+'",
"command": "cursorWordAccessibilityRightSelect",
"when": "editorTextFocus"
},
// home, end cursor 이동
{
"key": "alt+i",
"command": "cursorHome",
"when": "editorTextFocus"
},
{
"key": "alt+o",
"command": "cursorEnd",
"when": "editorTextFocus"
},
{
"key": "shift+alt+i",
"command": "cursorHomeSelect",
"when": "editorTextFocus"
},
{
"key": "shift+alt+o",
"command": "cursorEndSelect",
"when": "editorTextFocus"
},
// page up, page down cursor 이동
{
"key": "ctrl+alt+p",
"command": "cursorPageUp",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+;",
"command": "cursorPageDown",
"when": "editorTextFocus"
},
{
"key": "shift+ctrl+alt+p",
"command": "cursorPageUpSelect",
"when": "editorTextFocus"
},
{
"key": "shift+ctrl+alt+;",
"command": "cursorPageDownSelect",
"when": "editorTextFocus"
}
]
// Place your key bindings in this file to override the defaults
// for MAC
[
// ctrl <=> cmd fold, editor index 변경
{
"key": "ctrl+k ctrl+1",
"command": "editor.foldLevel1",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+1",
"command": "-editor.foldLevel1",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+k ctrl+2",
"command": "editor.foldLevel2",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+2",
"command": "-editor.foldLevel2",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+k ctrl+3",
"command": "editor.foldLevel3",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+3",
"command": "-editor.foldLevel3",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+k ctrl+4",
"command": "editor.foldLevel4",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+4",
"command": "-editor.foldLevel4",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+k ctrl+5",
"command": "editor.foldLevel5",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+5",
"command": "-editor.foldLevel5",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+k ctrl+6",
"command": "editor.foldLevel6",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+6",
"command": "-editor.foldLevel6",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "ctrl+k ctrl+7",
"command": "editor.foldLevel7",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+k cmd+7",
"command": "-editor.foldLevel7",
"when": "editorTextFocus && foldingEnabled"
},
{
"key": "cmd+1",
"command": "workbench.action.openEditorAtIndex1"
},
{
"key": "ctrl+1",
"command": "-workbench.action.openEditorAtIndex1"
},
{
"key": "cmd+2",
"command": "workbench.action.openEditorAtIndex2"
},
{
"key": "ctrl+2",
"command": "-workbench.action.openEditorAtIndex2"
},
{
"key": "cmd+3",
"command": "workbench.action.openEditorAtIndex3"
},
{
"key": "ctrl+3",
"command": "-workbench.action.openEditorAtIndex3"
},
{
"key": "cmd+4",
"command": "workbench.action.openEditorAtIndex4"
},
{
"key": "ctrl+4",
"command": "-workbench.action.openEditorAtIndex4"
},
{
"key": "cmd+5",
"command": "workbench.action.openEditorAtIndex5"
},
{
"key": "ctrl+5",
"command": "-workbench.action.openEditorAtIndex5"
},
{
"key": "cmd+6",
"command": "workbench.action.openEditorAtIndex6"
},
{
"key": "ctrl+6",
"command": "-workbench.action.openEditorAtIndex6"
},
{
"key": "cmd+7",
"command": "workbench.action.openEditorAtIndex7"
},
{
"key": "ctrl+7",
"command": "-workbench.action.openEditorAtIndex7"
},
{
"key": "cmd+8",
"command": "workbench.action.openEditorAtIndex8"
},
{
"key": "ctrl+8",
"command": "-workbench.action.openEditorAtIndex8"
},
{
"key": "cmd+9",
"command": "workbench.action.openEditorAtIndex9"
},
{
"key": "ctrl+9",
"command": "-workbench.action.openEditorAtIndex9"
},
{
"key": "ctrl+1",
"command": "workbench.action.focusFirstEditorGroup"
},
{
"key": "cmd+1",
"command": "-workbench.action.focusFirstEditorGroup"
},
{
"key": "ctrl+8",
"command": "workbench.action.focusEighthEditorGroup"
},
{
"key": "cmd+8",
"command": "-workbench.action.focusEighthEditorGroup"
},
{
"key": "ctrl+5",
"command": "workbench.action.focusFifthEditorGroup"
},
{
"key": "cmd+5",
"command": "-workbench.action.focusFifthEditorGroup"
},
{
"key": "ctrl+4",
"command": "workbench.action.focusFourthEditorGroup"
},
{
"key": "cmd+4",
"command": "-workbench.action.focusFourthEditorGroup"
},
{
"key": "ctrl+2",
"command": "workbench.action.focusSecondEditorGroup"
},
{
"key": "cmd+2",
"command": "-workbench.action.focusSecondEditorGroup"
},
{
"key": "ctrl+7",
"command": "workbench.action.focusSeventhEditorGroup"
},
{
"key": "cmd+7",
"command": "-workbench.action.focusSeventhEditorGroup"
},
{
"key": "ctrl+6",
"command": "workbench.action.focusSixthEditorGroup"
},
{
"key": "cmd+6",
"command": "-workbench.action.focusSixthEditorGroup"
},
{
"key": "ctrl+3",
"command": "workbench.action.focusThirdEditorGroup"
},
{
"key": "cmd+3",
"command": "-workbench.action.focusThirdEditorGroup"
},
// keyboard 커서이동 사전작업
{
"key": "ctrl+p",
"command": "-cursorUp",
"when": "textInputFocus"
},
{
"key": "ctrl+p",
"command": "workbench.action.quickOpen"
},
{
"key": "cmd+p",
"command": "-workbench.action.quickOpen"
},
// keyboard arrow cursor 이동
{
"key": "cmd+p",
"command": "cursorUp",
"when": "editorTextFocus"
},
{
"key": "cmd+;",
"command": "cursorDown",
"when": "editorTextFocus"
},
{
"key": "cmd+l",
"command": "cursorLeft",
"when": "editorTextFocus"
},
{
"key": "cmd+'",
"command": "cursorRight",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+p",
"command": "cursorUpSelect",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+;",
"command": "cursorDownSelect",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+l",
"command": "cursorLeftSelect",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+'",
"command": "cursorRightSelect",
"when": "editorTextFocus"
},
{
"key": "cmd+p",
"command": "cursorUp",
"when": "textInputFocus"
},
// 단어 cursor 이동
{
"key": "ctrl+cmd+l",
"command": "cursorWordAccessibilityLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+cmd+'",
"command": "cursorWordAccessibilityRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+cmd+l",
"command": "cursorWordAccessibilityLeftSelect",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+cmd+'",
"command": "cursorWordAccessibilityRightSelect",
"when": "editorTextFocus"
},
// home, end cursor 이동
{
"key": "cmd+i",
"command": "cursorHome",
"when": "editorTextFocus"
},
{
"key": "cmd+o",
"command": "cursorEnd",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+i",
"command": "cursorHomeSelect",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+o",
"command": "cursorEndSelect",
"when": "editorTextFocus"
},
// page up, page down cursor 이동
{
"key": "ctrl+cmd+p",
"command": "cursorPageUp",
"when": "editorTextFocus"
},
{
"key": "ctrl+cmd+;",
"command": "cursorPageDown",
"when": "editorTextFocus"
},
{
"key": "shift+ctrl+cmd+p",
"command": "cursorPageUpSelect",
"when": "editorTextFocus"
},
{
"key": "shift+ctrl+cmd+;",
"command": "cursorPageDownSelect",
"when": "editorTextFocus"
}
]

위 스샷에 보이는대로 넣어주면 적용 됩니다!
반응형
'잉여팁' 카테고리의 다른 글
Api test 프로그램 추천 (0) | 2021.05.25 |
---|---|
[vscode] extension vim (0) | 2020.12.09 |