Skip to content

Instantly share code, notes, and snippets.

@goophile
Last active December 8, 2021 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goophile/f4cc3741fd1eaa56b0cfc488c17a942e to your computer and use it in GitHub Desktop.
Save goophile/f4cc3741fd1eaa56b0cfc488c17a942e to your computer and use it in GitHub Desktop.
VSCode keybindings
// Place your key bindings in this file to override the defaults.
[
{
"key": "alt+left",
"command": "workbench.action.navigateBack",
"when": "editorTextFocus"
},
{
"key": "alt+right",
"command": "workbench.action.navigateForward",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+left",
"command": "workbench.action.openPreviousRecentlyUsedEditor",
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+right",
"command": "workbench.action.openNextRecentlyUsedEditor",
"when": "editorTextFocus"
},
{
"key": "alt+up",
"command": "extension.multiCommand.execute",
"args": {
"sequence": [
"metaGo.scrollCurrentLineToMiddle",
"cursorUp",
"metaGo.scrollCurrentLineToMiddle"
]
},
"when": "editorTextFocus"
},
{
"key": "alt+down",
"command": "extension.multiCommand.execute",
"args": {
"sequence": [
"metaGo.scrollCurrentLineToMiddle",
"cursorDown",
"metaGo.scrollCurrentLineToMiddle"
]
},
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+up",
"command": "extension.multiCommand.execute",
"args": {
"sequence": [
"metaGo.scrollCurrentLineToMiddle",
"cursorUp",
"cursorUp",
"cursorUp",
"cursorUp",
"cursorUp",
"cursorUp",
"cursorUp",
"cursorUp",
"cursorUp",
"cursorUp",
"metaGo.scrollCurrentLineToMiddle"
]
},
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+down",
"command": "extension.multiCommand.execute",
"args": {
"sequence": [
"metaGo.scrollCurrentLineToMiddle",
"cursorDown",
"cursorDown",
"cursorDown",
"cursorDown",
"cursorDown",
"cursorDown",
"cursorDown",
"cursorDown",
"cursorDown",
"cursorDown",
"metaGo.scrollCurrentLineToMiddle"
]
},
"when": "editorTextFocus"
},
{
"key": "shift+h",
"command": "cursorMove",
"args": {
"to": "viewPortTop"
},
"when": "editorTextFocus && amVim.mode != 'INSERT'"
},
{
"key": "shift+m",
"command": "cursorMove",
"args": {
"to": "viewPortCenter"
},
"when": "editorTextFocus && amVim.mode != 'INSERT'"
},
{
"key": "shift+l",
"command": "cursorMove",
"args": {
"to": "viewPortBottom"
},
"when": "editorTextFocus && amVim.mode != 'INSERT'"
},
{
"key": "ctrl+q",
"command": "-workbench.action.quit"
},
{
"key": "shift+f12",
"command": "-goToPreviousReference",
"when": "inReferenceSearchEditor || referenceSearchVisible"
},
{
"key": "shift+f12",
"command": "-editor.action.goToReferences",
"when": "editorHasReferenceProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "shift+f12",
"command": "editor.action.goToTypeDefinition"
}
]
@goophile
Copy link
Author

goophile commented Aug 20, 2021

Extensions:

  • amVim (disable Ctrl binding)
  • Go To Anything
  • Go To Next/Previous Member
  • MetaGo
  • multi-command

@goophile
Copy link
Author

goophile commented Dec 8, 2021

settings.json

{
    "window.zoomLevel": 1,
    "amVim.bindCtrlCommands": false,
    "workbench.tree.indent": 25,
    "go.toolsManagement.autoUpdate": true,
    "zenMode.hideLineNumbers": false,
    "workbench.editor.limit.enabled": true,
    "workbench.editor.limit.value": 5,
    "outline.showFields": false,
    "gotoNextPreviousMember.symbolKinds": [
        "array",
        "boolean",
        "class",
        "constant",
        "constructor",
        "enum",
        "enummember",
        "event",
        "file",
        "function",
        "interface",
        "key",
        "method",
        "module",
        "namespace",
        "null",
        "number",
        "object",
        "operator",
        "package",
        "property",
        "string",
        "struct",
        "typeparameter",
        "variable"
    ],
    "docker.showStartPage": false,
    "update.showReleaseNotes": false,
    "update.mode": "none",
    "editor.dragAndDrop": false,
    "window.titleBarStyle": "custom",
    "outline.showVariables": false,
    "editor.minimap.scale": 2
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment