Skip to content

Instantly share code, notes, and snippets.

@hoangong
Last active November 9, 2023 17:53
Show Gist options
  • Save hoangong/c03c180462baad77bb8ecbe4b783133d to your computer and use it in GitHub Desktop.
Save hoangong/c03c180462baad77bb8ecbe4b783133d to your computer and use it in GitHub Desktop.
keymaps
<keymap version="1" name="Windows copy" parent="$default">
<action id="$Undo">
<keyboard-shortcut first-keystroke="ctrl z" />
</action>
<action id="CloseContent">
<keyboard-shortcut first-keystroke="ctrl f4" />
<keyboard-shortcut first-keystroke="ctrl w" />
</action>
<action id="Diff.NextChange" />
<action id="Diff.PrevChange" />
<action id="EditorDeleteLine">
<keyboard-shortcut first-keystroke="alt back_space" />
</action>
<action id="EditorLineEnd">
<keyboard-shortcut first-keystroke="alt right" />
</action>
<action id="EditorLineEndWithSelection">
<keyboard-shortcut first-keystroke="shift alt right" />
</action>
<action id="EditorLineStart">
<keyboard-shortcut first-keystroke="alt left" />
</action>
<action id="EditorLineStartWithSelection">
<keyboard-shortcut first-keystroke="shift alt left" />
</action>
<action id="EditorLookupUp" />
<action id="EditorScrollUp" />
<action id="EditorSelectWord">
<keyboard-shortcut first-keystroke="ctrl up" />
</action>
<action id="ExternalSystem.ProjectRefreshAction" />
<action id="ForceOthersToFollowAction" />
<action id="GotoClass">
<keyboard-shortcut first-keystroke="ctrl o" />
</action>
<action id="GotoFile">
<keyboard-shortcut first-keystroke="shift ctrl o" />
</action>
<action id="MethodOverloadSwitchUp" />
<action id="NextEditorTab" />
<action id="NextTab" />
<action id="NotebookSelectCellAboveAction" />
<action id="OverrideMethods" />
<action id="PreviousEditorTab" />
<action id="PreviousTab" />
<action id="RerunTests" />
<action id="Run">
<keyboard-shortcut first-keystroke="shift alt r" />
</action>
<action id="SearchEverywhere.NavigateToPrevGroup">
<keyboard-shortcut first-keystroke="page_up" />
</action>
<action id="SmartSelect" />
<action id="TableResult.GrowSelection" />
<action id="TableResult.SelectColumn" />
<action id="UsageFiltering.WriteAccess" />
</keymap>
[
{
"key": "cmd+e",
"command": "-actions.findWithSelection"
},
{
"key": "cmd+e",
"command": "-extension.openRecentFiles"
},
{
"key": "cmd+e",
"command": "-thunder-client.change-env",
"when": "activeWebviewPanelId == 'tc.env-view' || activeWebviewPanelId == 'tc.request-view' || activeWebviewPanelId == 'tc.runcol-view'"
},
{
"key": "cmd+e",
"command": "-editor.action.toggleScreenReaderAccessibilityMode",
"when": "accessibilityHelpIsShown"
},
{
"key": "cmd+e",
"command": "workbench.action.openPreviousEditorFromHistory"
},
{
"key": "cmd+e",
"command": "-workbench.action.openPreviousEditorFromHistory",
"when": "inQuickOpen"
}
]
// Place your key bindings in this file to override the defaultsauto[]
[
{
"key": "alt+backspace",
"command": "editor.action.deleteLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+y",
"command": "-editor.action.deleteLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+o",
"command": "workbench.action.showAllSymbols"
},
{
"key": "ctrl+n",
"command": "-workbench.action.showAllSymbols"
},
{
"key": "ctrl+shift+o",
"command": "workbench.action.quickOpen"
},
{
"key": "ctrl+shift+n",
"command": "-workbench.action.quickOpen"
},
{
"key": "alt+right",
"command": "cursorEnd",
"when": "textInputFocus"
},
{
"key": "end",
"command": "-cursorEnd",
"when": "textInputFocus"
},
{
"key": "alt+left",
"command": "cursorHome",
"when": "textInputFocus"
},
{
"key": "home",
"command": "-cursorHome",
"when": "textInputFocus"
},
{
"key": "alt+left",
"command": "-workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "shift+alt+right",
"command": "-editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
{
"key": "shift+alt+left",
"command": "-editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "shift+alt+right",
"command": "cursorEndSelect",
"when": "textInputFocus"
},
{
"key": "shift+end",
"command": "-cursorEndSelect",
"when": "textInputFocus"
},
{
"key": "shift+alt+left",
"command": "cursorHomeSelect",
"when": "textInputFocus"
},
{
"key": "shift+home",
"command": "-cursorHomeSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+w",
"command": "workbench.action.closeActiveEditor"
},
{
"key": "ctrl+f4",
"command": "-workbench.action.closeActiveEditor"
},
{
"key": "shift+alt+r",
"command": "testing.reRunLastRun"
},
{
"key": "ctrl+oem_1 l",
"command": "-testing.reRunLastRun"
},
{
"key": "ctrl+shift+alt+r",
"command": "testing.debugLastRun"
},
{
"key": "ctrl+oem_1 ctrl+l",
"command": "-testing.debugLastRun"
},
{
"key": "ctrl+shift+up",
"command": "-editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+shift+up",
"command": "editor.action.smartSelect.expand"
},
{
"key": "ctrl+shift+down",
"command": "editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+w",
"command": "-editor.action.smartSelect.shrink",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+down",
"command": "-editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+e",
"command": "-workbench.action.quickOpen"
},
{
"key": "ctrl+e",
"command": "-extension.openRecentFiles"
},
{
"key": "ctrl+e",
"command": "-editor.action.toggleScreenReaderAccessibilityMode",
"when": "accessibilityHelpIsShown"
},
{
"key": "ctrl+e",
"command": "-workbench.action.quickOpenNavigateNextInFilePicker",
"when": "inFilesPicker && inQuickOpen"
},
{
"key": "ctrl+e",
"command": "workbench.action.openPreviousEditorFromHistory"
},
{
"key": "ctrl+e",
"command": "-workbench.action.openPreviousEditorFromHistory",
"when": "inQuickOpen"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment