vscode 설정 / snippet / 스니핏 / 단축키 / vscode 단축키 / vscode shortcut / key bindings
visual studio code 에서 key 를 변경하는 방법
visual studio code(vscode) 에서 key 를 변경하는 법은 간단하다. command palette 를 열고 open keyboard shortcut 를 찾아서 아래처럼 자신이 필요한 부분만 변경해 주면 된다.
- ctrl + shift + p (command palette) --> Preference : Open Keyboard Shortcut
My Settings
개인적인 필요에 의해서 여기에 내가 자주쓰는 것들을 내가 좋아하는 key 로 변경한 내용이다. 기본적으로 sublime text 의 key 와 비슷하다.
// Place your key bindings in this file to overwrite the defaults
[
{
"key": "ctrl+r",
"command": "workbench.action.gotoSymbol"
},
{
"key": "ctrl+k ctrl+b",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+b",
"command": "editor.action.goToDeclaration",
"when": "editorTextFocus"
},
{
"key": "f4",
"command": "editor.action.nextMatchFindAction",
"when": "editorFocus"
},
{
"key": "f3",
"command": "editor.action.previousMatchFindAction",
"when": "editorFocus"
},
{
"key": "shift+f4",
"command": "editor.action.nextSelectionMatchFindAction",
"when": "editorFocus"
},
{
"key": "shift+f3",
"command": "editor.action.previousSelectionMatchFindAction",
"when": "editorFocus"
},
{
"key": "alt+f2",
"command": "workbench.action.editor.previousChange",
"when": "editorTextFocus"
},
{
"key": "alt+f3",
"command": "workbench.action.editor.nextChange",
"when": "editorTextFocus"
},
{
"key": "f7",
"command": "workbench.action.compareEditor.previousChange",
"when": "textCompareEditorVisible"
},
{
"key": "f8",
"command": "workbench.action.compareEditor.nextChange",
"when": "textCompareEditorVisible"
},
{
"key": "alt+f5",
"command": "editor.action.dirtydiff.next",
"when": "editorTextFocus"
},
{
"key": "alt+shift+f5",
"command": "editor.action.dirtydiff.previous",
"when": "editorTextFocus"
},
{
"key": "alt+f7",
"command": "editor.action.referenceSearch.trigger",
"when": "editorTextFocus"
},
{
"key": "alt+f8",
"command": "editor.action.peekDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "ctrl+]",
"command": "editor.fold",
"when": "editorFocus"
},
{
"key": "ctrl+[",
"command": "editor.unfold",
"when": "editorFocus"
},
{
"key": "ctrl+shift+alt+]",
"command": "editor.foldAll",
"when": "editorFocus"
},
{
"key": "ctrl+shift+alt+[",
"command": "editor.unfoldAll",
"when": "editorFocus"
},
{
"key": "f8",
"command": "goToNextReferenceFromEmbeddedEditor",
"when": "inReferenceSearchEditor"
},
{
"key": "f7",
"command": "goToPreviousReferenceFromEmbeddedEditor",
"when": "inReferenceSearchEditor"
},
{
"key": "f8",
"command": "goToNextReference",
"when": "referenceSearchVisible"
},
{
"key": "f7",
"command": "goToPreviousReference",
"when": "referenceSearchVisible"
},
{
"key": "ctrl+alt+l",
"command": "numberedBookmarks.listFromAllFiles"
},
{
"key": "alt+,",
"command": "workbench.action.navigateBack"
},
{
"key": "alt+.",
"command": "workbench.action.navigateForward"
},
{
"key": "ctrl+alt+k",
"command": "-code-runner.runCustomCommand"
},
{
"key": "ctrl+alt+k",
"command": "bookmarks.toggle",
"when": "editorTextFocus"
},
{
"key": "shift+alt+d",
"command": "git.timeline.openDiff"
}
]
My User setting
// Place your settings in this file to overwrite the default settings
{
"editor.wordWrap": "on",
"php.validate.executablePath": "c:/a/apps/php/php-7.1.11-Win32-VC14-x64/php.exe",
"python.venvPath": "c:/a/envs",
"python.workspaceSymbols.ctagsPath": "c:/Program Files/ctags/ctags.exe",
"editor.renderWhitespace": "boundary",
"python.linting.pylintPath":"c:/a/apps/Python36-32/Scripts/pylint.exe",
"extensions.ignoreRecommendations": false,
"workbench.startupEditor": "newUntitledFile",
"workbench.panel.defaultLocation": "bottom",
"window.zoomLevel": 0,
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressResultsExplorerNotice": true,
"suppressShowKeyBindingsNotice": true,
"suppressUpdateNotice": false,
"suppressWelcomeNotice": true
},
"editor.minimap.showSlider": "always",
"gitlens.keymap": "none",
"terminal.integrated.shell.windows": "c:\\Windows\\SysWOW64\\cmd.exe",
"telemetry.enableTelemetry": false,
"search.location": "panel",
}
See Also
댓글 없음:
댓글 쓰기