Skip to content

Instantly share code, notes, and snippets.

@nikitavoloboev
Created June 21, 2024 19:18
Show Gist options
  • Save nikitavoloboev/a64e02ebc5b5edda97f45ac0e60cc97a to your computer and use it in GitHub Desktop.
Save nikitavoloboev/a64e02ebc5b5edda97f45ac0e60cc97a to your computer and use it in GitHub Desktop.
Cursor
[
{
"key": "cmd+right",
"command": "workbench.action.terminal.focusNext",
"when": "terminalFocus"
},
{
"key": "cmd+left",
"command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus"
},
{
"key": "Space w",
"command": "workbench.action.files.save",
"when": "editorFocus && !inDebugRepl && vim.mode == 'Normal Mode'"
},
{
"key": "cmd+;",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+k",
"command": "workbench.action.showCommands"
},
{
"key": "cmd+l",
"command": "workbench.action.quickOpen"
},
// {
// "key": "ctrl+r",
// "command": "workbench.view.explorer"
// },
{
"key": "ctrl+f",
"command": "editor.action.goToDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "ctrl+l",
"command": "editor.action.showHover",
"when": "editorTextFocus"
},
{
"key": "cmd+k cmd+i",
"command": "-editor.action.showHover",
"when": "editorTextFocus"
},
{
"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+2",
"command": "workbench.action.focusSecondEditorGroup"
},
{
"key": "cmd+2",
"command": "-workbench.action.focusSecondEditorGroup"
},
{
"key": "ctrl+3",
"command": "workbench.action.focusThirdEditorGroup"
},
{
"key": "cmd+3",
"command": "-workbench.action.focusThirdEditorGroup"
},
{
"key": "cmd+i",
"command": "-expandLineSelection",
"when": "editorTextFocus"
},
{
"key": "ctrl+j",
"command": "workbench.action.previousEditor"
},
{
"key": "ctrl+k",
"command": "workbench.action.nextEditor"
},
{
"key": "cmd+b",
"command": "-workbench.action.toggleSidebarVisibility"
},
{
"key": "alt+f12",
"command": "-editor.action.previewDeclaration",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "ctrl+e",
"command": "workbench.action.navigateBack"
},
{
"key": "shift+cmd+e",
"command": "-workbench.view.explorer"
},
{
"key": "cmd+o",
"command": "workbench.action.moveEditorToNextGroup"
},
{
"key": "ctrl+cmd+right",
"command": "-workbench.action.moveEditorToNextGroup"
},
{
"key": "cmd+i",
"command": "workbench.action.moveEditorToPreviousGroup"
},
{
"key": "ctrl+cmd+left",
"command": "-workbench.action.moveEditorToPreviousGroup"
},
{
"key": "ctrl+j",
"command": "-editor.action.joinLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+j",
"command": "workbench.action.terminal.focus",
"when": "!terminalFocus"
},
{
"key": "ctrl+;",
"command": "workbench.action.focusFirstEditorGroup",
"when": "terminalFocus"
},
{
"key": "cmd+o",
"command": "-workbench.action.files.openFileFolder",
"when": "fileDialog == 'local'"
},
{
"key": "cmd+r",
"command": "workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
},
{
"key": "cmd+w",
"command": "-workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
},
{
"key": "cmd+enter",
"command": "renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "enter",
"command": "-renameFile",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
{
"key": "shift+alt+f12",
"command": "-references-view.find",
"when": "editorHasReferenceProvider"
},
{
"key": "alt+cmd+g",
"command": "editor.action.revealDefinitionAside",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "cmd+k f12",
"command": "-editor.action.revealDefinitionAside",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "enter",
"command": "editor.action.goToDeclaration",
"when": "inSearchEditor && editorTextFocus && vim.mode == 'Normal'"
},
{
"key": "shift+cmd+v",
"command": "-markdown.showPreview",
"when": "editorLangId == 'markdown'"
},
{
"key": "ctrl+i",
"command": "editor.action.quickFix",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+'",
"command": "toggleVim"
},
{
"key": "ctrl+space",
"command": "-editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "f2",
"command": "-editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
// {
// "key": "ctrl+d",
// "command": "editor.action.rename"
// },
{
"key": "alt+f12",
"command": "-editor.action.peekDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !inReferenceSearchEditor && !isInEmbeddedEditor"
},
{
"key": "cmd+k down",
"command": "-workbench.action.moveActiveEditorGroupDown"
},
{
"key": "cmd+k left",
"command": "-workbench.action.moveActiveEditorGroupLeft"
},
{
"key": "cmd+k right",
"command": "-workbench.action.moveActiveEditorGroupRight"
},
{
"key": "cmd+k up",
"command": "-workbench.action.moveActiveEditorGroupUp"
},
{
"key": "shift+cmd+j",
"command": "workbench.action.moveEditorLeftInGroup"
},
{
"key": "cmd+k shift+cmd+left",
"command": "-workbench.action.moveEditorLeftInGroup"
},
{
"key": "shift+cmd+k",
"command": "workbench.action.moveEditorRightInGroup"
},
{
"key": "cmd+k shift+cmd+right",
"command": "-workbench.action.moveEditorRightInGroup"
},
{
"key": "ctrl+w",
"command": "editor.action.marker.next",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+q",
"command": "editor.action.marker.prev",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+f8",
"command": "-editor.action.marker.next",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+alt+f8",
"command": "-editor.action.marker.prev",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+v",
"command": "workbench.action.gotoSymbol"
},
{
"key": "shift+cmd+o",
"command": "-workbench.action.gotoSymbol"
},
{
"key": "cmd+0",
"command": "-workbench.action.focusSideBar"
},
{
"key": "ctrl+shift+-",
"command": "-workbench.action.navigateForward"
},
{
"key": "shift+cmd+n",
"command": "-workbench.action.newWindow"
},
{
"key": "shift+cmd+l",
"command": "-editor.action.selectHighlights",
"when": "editorFocus"
},
{
"key": "shift+cmd+l",
"command": "explorer.newFile"
},
{
"key": "cmd+shift+t",
"command": "gitlens.openCommitInRemote",
"when": "editorFocus"
},
{
"key": "ctrl+r",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "ctrl+space",
"command": "editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "alt+escape",
"command": "-editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
{
"key": "alt+escape",
"command": "-editor.action.triggerSuggest",
"when": "editorHasCompletionItemProvider && textInputFocus && !editorReadonly"
},
// {
// "key": "cmd+j",
// "command": "workbench.action.togglePanel"
// },
{
"key": "ctrl+n",
"command": "editor.action.codeAction"
},
{
"key": "alt+cmd+c",
"command": "copyFilePath"
},
{
"key": "alt+cmd+c",
"command": "-copyFilePath",
"when": "!editorFocus"
},
{
"key": "shift+alt+cmd+c",
"command": "copyRelativeFilePath"
},
{
"key": "shift+alt+cmd+c",
"command": "-copyRelativeFilePath",
"when": "!editorFocus"
},
{
"key": "shift+cmd+f",
"command": "search.action.openEditor"
},
{
"key": "cmd+k",
"command": "-aipopup.action.modal.generate",
"when": "editorFocus"
},
// {
// "key": "cmd+j",
// "command": "-workbench.action.togglePanel"
// },
// {
// "key": "cmd+j",
// "command": "aipopup.action.modal.generate"
// },
{
"key": "cmd+l",
"command": "-aichat.newchataction"
},
{
"key": "cmd+j",
"when": "!terminalFocus",
"command": "-workbench.action.togglePanel"
},
// TODO: should not go to first editor tab but should just 'go back' from when terminal was focused in on
{
"key": "cmd+j",
"when": "terminalFocus",
"command": "workbench.action.focusFirstEditorGroup"
},
{
"key": "cmd+r",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "ctrl+`",
"command": "-workbench.action.terminal.toggleTerminal",
"when": "terminal.active"
},
{
"key": "ctrl+.",
"command": "aichat.insertselectionintochat"
},
{
"key": "shift+cmd+l",
"command": "-aichat.insertselectionintochat"
},
{
"key": "ctrl+c",
"command": "aipopup.action.modal.generate"
},
{
"key": "shift+cmd+r",
"command": "aichat.fixerrormessage",
"when": "(arbitrary function)"
},
{
"key": "shift+cmd+e",
"command": "-aichat.fixerrormessage",
"when": "(arbitrary function)"
},
{
"key": "shift+cmd+e",
"command": "aichat.fixerrormessage"
},
{
"key": "cmd+y",
"command": "-aichat.newfollowupaction",
"when": "activeAuxiliary == 'workbench.panel.aichat'"
},
{
"key": "ctrl+;",
"command": "aichat.insertselectionintofollowup"
},
{
"key": "shift+cmd+y",
"command": "-aichat.insertselectionintofollowup"
},
{
"key": "ctrl+;",
"command": "aichat.newfollowupaction"
},
{
"key": "shift+cmd+s",
"command": "editor.action.organizeImports",
"when": "textInputFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)source\\.organizeImports\\b/"
},
{
"key": "shift+alt+o",
"command": "-editor.action.organizeImports",
"when": "textInputFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)source\\.organizeImports\\b/"
},
{
"key": "shift+cmd+s",
"command": "-workbench.action.files.saveAs"
},
{
"key": "ctrl+alt+cmd+]",
"command": "breadcrumbs.focus",
"when": "breadcrumbsPossible && breadcrumbsVisible"
},
{
"key": "shift+cmd+;",
"command": "-breadcrumbs.focus",
"when": "breadcrumbsPossible && breadcrumbsVisible"
},
{
"key": "alt+f5",
"command": "-workbench.action.compareEditor.nextChange",
"when": "textCompareEditorVisible"
},
{
"key": "ctrl+d",
"command": "workbench.action.compareEditor.nextChange"
},
{
"key": "alt+f5",
"command": "-workbench.action.editor.nextChange",
"when": "editorTextFocus && !textCompareEditorActive"
},
{
"key": "ctrl+d",
"command": "workbench.action.editor.nextChange"
},
{
"key": "ctrl+m",
"command": "editor.action.rename"
},
{
"key": "shift+cmd+8",
"command": "workbench.explorer.fileView.focus"
}
]
{
"workbench.colorCustomizations": {
"[GitHub Light]": {
// "editorLineNumber.foreground": "#0d090979",
"editorLineNumber.foreground": "#ffffff",
"editor.lineHighlightBackground": "#ffffff",
"editorInlayHint.typeBackground": "#f1f9fd",
// "editor.background": "#eeecf4",
// "tab.activeBackground": "#eeecf4",
// "window.activeBorder": "#eeecf4",
// "window.inactiveBorder": "#eeecf4",
"titleBar.activeBackground": "#ffffff",
"titleBar.activeForeground": "#0d1116"
},
"[GitHub Dark Default]": {
"editorLineNumber.foreground": "#0c1118",
// "editorLineNumber.foreground": "#615e5ea7",
"editor.lineHighlightBackground": "#0c1118",
"editorInlayHint.typeBackground": "#0d1116",
"titleBar.activeBackground": "#02040a",
"titleBar.activeForeground": "#7c8590"
}
},
"errorLens.followCursor": "allLines",
"editor.inlayHints.enabled": "off",
"editor.formatOnSave": true,
"editor.suggestSelection": "recentlyUsedByPrefix",
"editor.renderLineHighlight": "gutter",
"editor.hideCursorInOverviewRuler": true,
"editor.scrollBeyondLastLine": false,
"editor.tabSize": 2,
"editor.lineHeight": 26,
"editor.occurrencesHighlight": "off",
"editor.overviewRulerBorder": false,
"editor.folding": false,
"editor.snippetSuggestions": "top",
"editor.lightbulb.enabled": "off",
"editor.minimap.enabled": false,
"editor.cursorBlinking": "solid",
"editor.cursorStyle": "line",
"editor.fontLigatures": true,
"editor.fontSize": 15,
"files.exclude": {
"**/node_modules/": true,
"**/.git": true,
"**/.next": true,
"**/.DS_Store": true,
"**/package-lock.json": true,
"**/yarn.lock": true,
"vendor": true,
"**/npm-debug.log": true,
"**/dist": true,
"**/*.bs.js": true
},
"files.associations": {
"*.toml": "toml",
"*.njk": "html",
"*.json5": "jsonc"
},
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"files.eol": "\n",
"workbench.editor.enablePreviewFromQuickOpen": true,
"workbench.colorTheme": "GitHub Dark Default",
"workbench.preferredLightColorTheme": "GitHub Light",
"workbench.preferredDarkColorTheme": "GitHub Dark Default",
"workbench.list.horizontalScrolling": true,
"workbench.panel.defaultLocation": "right",
"workbench.fontAliasing": "antialiased",
"workbench.settings.editor": "json",
"workbench.editor.showIcons": false,
"workbench.settings.enableNaturalLanguageSearch": false,
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
"window.autoDetectColorScheme": true,
"window.restoreWindows": "all",
"window.newWindowDimensions": "maximized",
"breadcrumbs.filePath": "on",
"breadcrumbs.enabled": true,
"debug.openDebug": "neverOpen",
"debug.showInStatusBar": "never",
"debug.toolBarLocation": "hidden",
"debug.console.fontSize": 15,
"search.quickOpen.includeHistory": false,
"search.searchEditor.defaultNumberOfContextLines": null,
"search.smartCase": true,
"search.exclude": {
"**/node_modules": true,
"**/.git": true,
"dist": true,
"out": true,
"coverage": true
},
"terminal.integrated.copyOnSelection": true,
"terminal.integrated.fontSize": 15,
"terminal.integrated.inheritEnv": false,
"explorer.confirmDelete": false,
"explorer.confirmDragAndDrop": false,
"explorer.decorations.badges": false,
"vim.leader": " ",
"vim.cursorStylePerMode.normal": "underline",
"vim.useSystemClipboard": true,
"vim.normalModeKeyBindings": [
{
"before": ["<leader>", "w"],
"after": [],
"commands": [
{
"command": "workbench.action.files.save",
"args": []
}
]
},
{
"before": ["<leader>", "q"],
"after": [],
"commands": [
{
"command": "workbench.action.closeActiveEditor",
"args": []
}
]
},
{
"before": ["<leader>", "a"],
"after": [],
"commands": [
{
"command": "workbench.action.files.save",
"args": []
},
{
"command": "workbench.action.closeActiveEditor",
"args": []
}
]
},
{
"before": ["K"],
"after": ["leader", "leader", "k"]
},
{
"before": ["J"],
"after": ["leader", "leader", "j"]
},
{
"before": ["<leader>", "i"],
"after": ["y", "i", "\""]
},
{
"before": ["Y"],
"after": ["y", "$"]
}
],
"vim.visualModeKeyBindings": [
{
"before": ["K"],
"after": ["leader", "leader", "k"]
},
{
"before": ["J"],
"after": ["leader", "leader", "j"]
}
],
"vim.easymotion": true,
"vim.easymotionMarkerBackgroundColor": "yellow",
"vim.easymotionKeys": "hklyuiopnm,qwertzxcvbasdgjf:",
"vim.easymotionMarkerForegroundColorOneChar": "black",
"go.toolsManagement.autoUpdate": true,
"go.useLanguageServer": true,
"[go]": {
"editor.snippetSuggestions": "none",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
}
},
"gopls": {
"usePlaceholders": true,
"completeUnimported": true,
"buildFlags": ["-tags", "mage"]
},
"go.lintTool": "golint",
"go.lintOnSave": "package",
"typescript.check.npmIsInstalled": false,
"typescript.updateImportsOnFileMove.enabled": "never",
"javascript.updateImportsOnFileMove.enabled": "never",
"javascript.validate.enable": false,
"git.mergeEditor": true,
"git.autofetch": true,
"git.confirmSync": false,
"git.ignoreLimitWarning": true,
"git.enableSmartCommit": true,
"git.ignoreMissingGitWarning": true,
"gitlens.currentLine.format": "${message}",
"extensions.ignoreRecommendations": true,
// "[jsonc]": {
// "editor.defaultFormatter": "esbenp.prettier-vscode"
// },
"highlight-matching-tag.styles": {
"opening": {
"name": {
"underline": "#368ddc"
}
}
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"workbench.editor.decorations.colors": false,
"editor.inlineSuggest.enabled": true,
"terminal.integrated.defaultProfile.osx": "fish",
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"git.openRepositoryInParentFolders": "never",
"workbench.statusBar.visible": false,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"window.title": "${activeEditorShort}${separator}${rootNameShort}${separator}${profileName}",
"workbench.layoutControl.enabled": false,
"window.commandCenter": false,
"extensions.experimental.affinity": {
"vscodevim.vim": 1
},
"errorLens.enabled": true,
"errorLens.enabledDiagnosticLevels": ["error", "info"],
"terminal.integrated.tabs.enabled": false,
"gitlens.hovers.currentLine.over": "line",
"workbench.activityBar.location": "hidden",
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"window.zoomLevel": -1,
"cursor.cpp.disabledLanguages": ["plaintext", "markdown", "scminput"],
"editor.accessibilitySupport": "off",
"ReactNativeIDE.panelLocation": "tab",
"github.copilot.editor.enableAutoCompletions": true,
"github.copilot.enable": {
"*": false,
"plaintext": false,
"markdown": false,
"scminput": false
},
"lldb.library": "/Library/Developer/CommandLineTools/Library/PrivateFrameworks/LLDB.framework/Versions/A/LLDB",
"lldb.launch.expressions": "native"
// "editor.suggestSelection": "first",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment