Created
July 26, 2024 01:58
-
-
Save d1y/64519526fd132376bf0635cac4ac52e4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"key": "ctrl+h", | |
"command": "workbench.action.navigateLeft", | |
"when": "!terminalFocus" | |
}, | |
{ | |
"key": "ctrl+l", | |
"command": "workbench.action.navigateRight", | |
"when": "!terminalFocus" | |
}, | |
{ | |
"key": "ctrl+k", | |
"command": "workbench.action.navigateUp", | |
"when": "!terminalFocus" | |
}, | |
{ | |
"key": "ctrl+j", | |
"command": "workbench.action.navigateDown", | |
"when": "!terminalFocus" | |
}, | |
{ | |
"key": "cmd-t", | |
"command": "workbench.action.terminal.newInActiveWorkspace", | |
"when": "terminalFocus" | |
}, | |
{ | |
"key": "cmd-shift-g", | |
"command": "lazygit.openLazygit" | |
}, | |
{ | |
"key": "q", | |
"command": "workbench.action.closeActiveEditor", | |
"when": "editorFocus && vim.mode != 'Insert' && editorTextFocus && !renameInputFocus" | |
}, | |
// ------------------------- | |
{ | |
"key": "alt+n", | |
"command": "workbench.action.compareEditor.nextChange", | |
"when": "editorTextFocus && !suggestWidgetVisible && textCompareEditorActive", | |
}, | |
{ | |
"key": "alt+shift+n", | |
"command": "workbench.action.compareEditor.previousChange", | |
"when": "editorTextFocus && !suggestWidgetVisible && textCompareEditorActive", | |
}, | |
{ | |
"key": "alt+n", | |
"command": "workbench.action.editor.nextChange", | |
"when": "editorTextFocus && !suggestWidgetVisible && !textCompareEditorActive", | |
}, | |
{ | |
"key": "alt+shift+n", | |
"command": "workbench.action.editor.previousChange", | |
"when": "editorTextFocus && !suggestWidgetVisible && !textCompareEditorActive", | |
}, | |
// ------------------------- | |
// ------------------------- | |
// 资源管理器中对文件或目录的操作 | |
// https://github.com/Yuhao-Luo/DotFiles/blob/main/keybindings.json | |
// ------------------------- | |
// 新建文件 | |
{ | |
"key": "a", | |
"command": "explorer.newFile", | |
"when": " explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus " | |
}, | |
// 新建目录 | |
{ | |
"key": "o", | |
"command": "explorer.newFolder", | |
"when": " explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus " | |
}, | |
// 重命名文件或目录 | |
{ | |
"key": "r", | |
"command": "renameFile", | |
"when": " explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus " | |
}, | |
// 删除文件或目录 | |
{ | |
"key": "d", | |
"command": "deleteFile", | |
"when": " explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus " | |
}, | |
// 剪切文件或目录 | |
{ | |
"key": "x", | |
"command": "filesExplorer.cut", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus" | |
}, | |
// 复制文件或目录 | |
{ | |
"key": "y", | |
"command": "filesExplorer.copy", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus" | |
}, | |
// 粘贴文件或目录 | |
{ | |
"key": "p", | |
"command": "filesExplorer.paste", | |
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus" | |
}, | |
// { | |
// "key": "cmd+[", | |
// "command": "workbench.action.previousEditor" | |
// }, | |
// { | |
// "key": "cmd+]", | |
// "command": "workbench.action.nextEditor" | |
// }, | |
{ | |
"key": "cmd+g cmd+g", | |
"command": "git.commitStaged" | |
}, | |
{ | |
"key": "cmd+g cmd+p", | |
"command": "git.push" | |
}, | |
{ | |
"key": "cmd+1", | |
"command": "workbench.action.showEditorTab" | |
}, | |
{ | |
"key": "cmd+2", | |
"command": "workbench.action.showMultipleEditorTabs" | |
}, | |
{ | |
"key": "cmd+3", | |
"command": "workbench.action.toggleStatusbarVisibility" | |
}, | |
{ | |
"key": "cmd+4", | |
"command": "workbench.action.toggleActivityBarVisibility" | |
}, | |
{ | |
"key": "cmd+5", | |
"command": "workbench.action.togglePanel" | |
}, | |
// { | |
// "key": "cmd+6", | |
// "command": "workbench.action.hideEditorTabs" | |
// }, | |
{ | |
"key": "cmd+8", | |
"command": "workbench.action.reloadWindow" | |
}, | |
{ | |
"key": "cmd+9", | |
"command": "workbench.action.toggleScreencastMode" | |
}, | |
{ | |
"key": "shift+cmd+j", | |
"command": "workbench.action.toggleMaximizedPanel" | |
}, | |
{ // like x11 desktop ^:) | |
"key": "alt+enter", | |
"command": "workbench.action.terminal.toggleTerminal" | |
}, | |
{ | |
"key": "ctrl+delete", | |
"command": "workbench.action.terminal.sendSequence", | |
"when": "terminalFocus", | |
"args": { "text": "\u001bd" } | |
}, | |
{ | |
"key": "cmd+\\", | |
"command": "workbench.action.createTerminalEditor", | |
"when": "terminalProcessSupported && vim.mode != 'Insert'" | |
}, | |
{ | |
"key": "cmd+\\", | |
"command": "editor.action.triggerSuggest", | |
"when": "terminalProcessSupported && vim.mode == 'Insert'" | |
} | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.tabSize": 2, | |
"editor.colorDecorators": true, | |
"editor.cursorStyle": "line", | |
"editor.cursorWidth": 3, | |
"editor.occurrencesHighlight": "singleFile", | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"typescript.updateImportsOnFileMove.enabled": "always", | |
"accessibility.signals.clear": { | |
"sound": "off", | |
"announcement": "off", | |
}, | |
"workbench.tree.expandMode": "singleClick", | |
"explorer.confirmDelete": false, | |
"explorer.confirmDragAndDrop": false, | |
"extensions.ignoreRecommendations": true, | |
"git.enableSmartCommit": true, | |
"git.ignoreLegacyWarning": true, | |
"errorLens.enabledDiagnosticLevels": [ | |
"warning", | |
"error" | |
], | |
"files.exclude": { | |
"**/node_modules": true, | |
"**/.classpath": true, | |
"**/.project": true, | |
"**/.settings": true, | |
"**/.factorypath": true | |
}, | |
"emmet.includeLanguages": { | |
"wxml": "html" | |
}, | |
"editor.suggestSelection": "first", | |
"editor.quickSuggestions": { | |
"strings": true, | |
"other": true, | |
"comments": true | |
}, | |
"screencastMode.fontSize": 20, | |
"screencastMode.verticalOffset": 0, | |
"[dart]": { | |
"editor.formatOnSave": false, | |
"editor.formatOnType": true, | |
"editor.rulers": [ | |
80 | |
], | |
"editor.selectionHighlight": true, | |
"editor.suggest.snippetsPreventQuickSuggestions": false, | |
"editor.suggestSelection": "first", | |
"editor.tabCompletion": "onlySnippets", | |
"editor.wordBasedSuggestions": "off", | |
"editor.tabSize": 2 | |
}, | |
"screencastMode.mouseIndicatorColor": "#fff", | |
"editor.largeFileOptimizations": false, | |
"editor.fontFamily": "'MonacoLigaturized Nerd Font Mono', 'FiraCode Nerd Font Mono','JetBrainsMono Nerd Font Mono', Menlo, 'SF Mono','Monaspace Neon','Optica Mono', 'Source Code Pro'", | |
"editor.fontLigatures": "'ss01', 'ss02', 'ss03', 'ss04', 'ss05', 'ss06', 'ss07', 'ss08', 'calt', 'dlig'", | |
"security.workspace.trust.untrustedFiles": "open", | |
"remote.autoForwardPorts": false, | |
"editor.semanticHighlighting.enabled": false, | |
"workbench.editor.showIcons": true, | |
"screencastMode.mouseIndicatorSize": 88, | |
"editor.suggest.preview": true, | |
"dart.debugExternalPackageLibraries": true, | |
"dart.debugSdkLibraries": false, | |
"terminal.integrated.defaultProfile.linux": "zsh", | |
"editor.fontWeight": "normal", | |
"terminal.integrated.cursorBlinking": true, | |
"editor.inlineSuggest.enabled": true, | |
"workbench.editor.highlightModifiedTabs": true, | |
"workbench.editor.scrollToSwitchTabs": true, | |
"editor.bracketPairColorization.independentColorPoolPerBracketType": true, | |
"vim.autoSwitchInputMethod.enable": false, | |
"vim.easymotion": true, | |
"vim.leader": "<space>", | |
"vim.handleKeys": { | |
"<C-a>": false, | |
"<C-f>": false, | |
"<C-n>": false, | |
}, | |
"extensions.experimental.affinity": { | |
"vscodevim.vim": 1 | |
}, | |
"vim.insertModeKeyBindings": [ | |
{ | |
"before": [ "j", "j" ], | |
"after": [ "<Esc>" ] | |
} | |
], | |
"vim.visualModeKeyBindingsNonRecursive": [ | |
{ | |
"before": [ "<leader>", "g", "s" ], | |
"commands": [ "git.stageSelectedRanges" ] | |
}, | |
{ | |
"before": [ "<leader>", "g", "u" ], | |
"commands": [ "git.unstageSelectedRanges" ] | |
}, | |
{ | |
"before": [ "<leader>", "f" ], | |
"commands": [ "editor.action.formatSelection" ] | |
}, | |
{ | |
"before": [ "J" ], | |
"commands": [ "editor.action.moveLinesDownAction" ] | |
}, | |
{ | |
"before": [ "K" ], | |
"commands": [ "editor.action.moveLinesUpAction" ] | |
}, | |
{ | |
"before": [ "<leader>", "r", "h" ],// reset current selected chunk | |
"commands": [ "git.revertSelectedRanges" ] | |
}, | |
{ | |
"before": [ ">" ], | |
"commands": [ "editor.action.indentLines" ] | |
}, | |
{ | |
"before": [ "<" ], | |
"commands": [ "editor.action.outdentLines" ] | |
}, | |
{ | |
"before": [ "enter" ], | |
"commands": [ "bracket-select.select" ], | |
} | |
], | |
// all vscode keys https://github.com/gwk/gloss/blob/2d8e62decd294679ad77a8c9270c38178ed8cab0/vscode/keys.txt#L1593 | |
"vim.normalModeKeyBindingsNonRecursive": [ | |
{ | |
"before": [ "K" ], | |
"commands": [ "editor.action.showHover" ] | |
}, | |
// =========> debug | |
{ | |
"before": [ "<Leader>", "d", "s" ], | |
"commands": [ "workbench.action.debug.start" ] | |
}, | |
{ | |
"before": [ "<Leader>", "d", "S" ], | |
"commands": [ "workbench.action.debug.stop" ] | |
}, | |
{ | |
"before": [ "<Leader>", "d", "b" ], | |
"commands": [ "editor.debug.action.toggleBreakpoint" ] | |
}, | |
{ | |
"before": [ "<Leader>", "d", "n" ], | |
"commands": [ "editor.debug.action.goToNextBreakpoint" ] | |
}, | |
{ | |
"before": [ "<Leader>", "d", "N" ], | |
"commands": [ "editor.debug.action.goToPreviousBreakpoint" ] | |
}, | |
// ===================== | |
{ | |
"before": [ "<leader>", "<leader>", "g" ], | |
"commands": [ "git.openChange" ] | |
}, | |
{ | |
"before": [ "<leader>", "<leader>", "m" ], | |
"commands": [ "workbench.action.toggleZenMode" ] | |
}, | |
{ | |
"before": [ "<leader>", "g", "p" ], | |
"commands": [ "git.push" ] | |
}, | |
{ | |
"before": [ "<leader>", "o" ], | |
"commands": [ "autojump.openFolder" ] | |
}, | |
{ | |
"before": [ "<leader>", "g", "s" ], | |
"commands": [ "git.stageSelectedRanges" ] | |
}, | |
{ | |
"before": [ "<leader>", "g", "u" ], | |
"commands": [ "git.unstageSelectedRanges" ] | |
}, | |
{ | |
"before": [ "<leader>", "g", "c" ], | |
"commands": [ "git.commit" ] | |
}, | |
// https://github.com/SuperPaintman/dotfiles/blob/57484e960e4505e0f486f9134680977bb643fa2f/vim/.vimrc#L889C47-L889C67 | |
{ | |
"before": [ "<leader>", "r", "h" ], | |
"commands": [ "git.revertSelectedRanges" ] | |
}, | |
{ | |
"before": [ "g", "N" ], | |
"commands": [ "workbench.action.editor.previousChange", "extension.vim_escape" ] | |
}, | |
{ | |
"before": [ "g", "n" ], | |
"commands": [ "workbench.action.editor.nextChange", "extension.vim_escape" ] | |
}, | |
/* opens settings json */ | |
{ | |
"before": [ "<leader>", "e", "s" ], | |
"commands": [ "workbench.action.openSettingsJson" ], | |
"silent": true | |
}, | |
{ | |
"before": [ "<Leader>", ";" ],// 放大当前 | |
"commands": [ "workbench.action.increaseViewSize" ] | |
}, | |
{ | |
"before": [ "<Leader>", "'" ],// 缩放当前 | |
"commands": [ "workbench.action.decreaseViewSize" ] | |
}, | |
{ | |
"before": [ "enter" ], | |
"commands": [ "bracket-select.select" ], | |
}, | |
{ | |
"before": [ "<Leader>","n"], // 显示左侧 | |
"commands": [ "workbench.action.toggleSidebarVisibility" ] | |
}, | |
{ | |
"before": [ "<Leader>", "i" ], | |
"commands": [ "workbench.action.toggleEditorWidths" ] | |
}, | |
{ | |
"before": [ "<Leader>", "f", "d" ],// 格式化文档 | |
"commands": [ "editor.action.formatDocument" ] | |
}, | |
{ | |
"before": [ "<Leader>", "q" ],// 关闭文件 | |
"commands": [ "workbench.action.closeActiveEditor" ] | |
}, | |
{ | |
"before": [ "<Leader>", "s" ],// 保存文件 | |
"commands": [ "workbench.action.files.save" ] | |
}, | |
{ | |
"before": [ "<Leader>", "r", "s" ],// 修改符号名 | |
"commands": [ "editor.action.rename" ] | |
}, | |
{ | |
"before": [ "<Leader>", "H" ],// 上一个文件(tab) | |
"commands": [ "workbench.action.nextEditor" ] | |
}, | |
{ | |
"before": [ "<Leader>", "G" ],// 下一个文件(tab) | |
"commands": [ "workbench.action.previousEditor" ] | |
}, | |
{ | |
"before": [ "<Leader>", "w", "j" ],// 下方(分屏)打开文件 | |
"commands": [ "workbench.action.splitEditorDown" ] | |
}, | |
{ | |
"before": [ "<Leader>", "w", "k" ], | |
"commands": [ "workbench.action.splitEditorUp" ] | |
}, | |
{ | |
"before": [ "<Leader>", "w", "l" ],// 侧边(分屏)打开文件 | |
"commands": [ "workbench.action.splitEditorRight" ] | |
}, | |
], | |
"editor.stickyScroll.enabled": false, | |
"terminal.integrated.smoothScrolling": true, | |
"dart.warnWhenEditingFilesOutsideWorkspace": false, | |
"cmake.configureOnOpen": true, | |
"workbench.editor.wrapTabs": true, | |
"cmake.cmakePath": "/opt/homebrew/bin/cmake", | |
"editor.scrollbar.verticalScrollbarSize": 12, | |
"editor.stickyTabStops": true, | |
"typescript.implementationsCodeLens.enabled": true, | |
"editor.smoothScrolling": true, | |
"workbench.list.smoothScrolling": true, | |
"git.autofetch": true, | |
"editor.accessibilitySupport": "off", | |
"vim.enableNeovim": true, | |
"vim.useSystemClipboard": true, | |
"terminal.integrated.fontFamily": "'MonacoLigaturized Nerd Font Mono','JetBrainsMono Nerd Font Mono','FiraCode Nerd Font Mono'", | |
"codeium.enableConfig": { | |
"*": true, | |
"ignore": true, | |
"markdown": true, | |
"git-commit": true | |
}, | |
"dart.flutterSdkPaths": [ "/Users/d1y/fvm/default/bin/flutter" ], | |
"workbench.editor.tabSizingFixedMaxWidth": 120, | |
"editor.linkedEditing": true, | |
"git.openRepositoryInParentFolders": "always", | |
"workbench.editor.centeredLayoutFixedWidth": true, | |
"editor.inlayHints.padding": true, | |
"vue.inlayHints.missingProps": true, | |
"vue.inlayHints.optionsWrapper": true, | |
"vue.inlayHints.inlineHandlerLeading": true, | |
"editor.tabCompletion": "on", | |
"editor.mouseWheelZoom": true, | |
"editor.guides.bracketPairs": true, | |
"gitlens.statusBar.format": "${author}, ${agoOrDate} • ${message}", | |
"terminal.integrated.fontSize": 12, | |
"search.showLineNumbers": true, | |
"git.terminalGitEditor": true, | |
"keyboard.dispatch": "keyCode", | |
"go.delveConfig": { | |
"debugAdapter": "dlv-dap", | |
"dlvFlags": [ | |
"--only-same-user=false" | |
], | |
}, | |
"autojump.smartPlugin": "zoxide", | |
"autojump.isSkipWarnModal": true, | |
"autojump.isRevealCurrent": false, | |
"autojump.isCancel": true, | |
"workbench.editor.empty.hint": "hidden", | |
"gopls": { | |
"ui.semanticTokens": true, | |
"ui.noSemanticString": true, | |
"ui.noSemanticNumber": true, | |
}, | |
"go.testFlags": [ "-count=1", "-v", ], | |
"tooltitude.openOnlyRef": false, | |
"tooltitude.downloadDeps": false, | |
"tooltitude.codeLens.impls": false, | |
"tooltitude.codeLens.debugTableTest": false, | |
"tooltitude.brokenRefsEnabled": false, | |
"tooltitude.codeLens.refs": false, | |
"tooltitude.shadowInspectionEnabled": false, | |
"tooltitude.codeLens.showUnused": false, | |
"tooltitude.unusedWritesEnabled": false, | |
"screencastMode.keyboardOptions": { | |
"showKeys": false, | |
"showKeybindings": false, | |
"showCommands": false, | |
"showSingleEditorCursorMoves": false | |
}, | |
"go.inlayHints.constantValues": true, | |
"go.inlayHints.assignVariableTypes": true, | |
"go.inlayHints.compositeLiteralFields": true, | |
"go.inlayHints.compositeLiteralTypes": true, | |
"go.inlayHints.functionTypeParameters": true, | |
"go.inlayHints.parameterNames": true, | |
"go.inlayHints.rangeVariableTypes": true, | |
"editor.inlayHints.fontFamily": "Monaspace Krypton", | |
"typescript.inlayHints.enumMemberValues.enabled": true, | |
"typescript.inlayHints.functionLikeReturnTypes.enabled": true, | |
"typescript.inlayHints.parameterTypes.enabled": true, | |
"typescript.inlayHints.propertyDeclarationTypes.enabled": true, | |
"typescript.inlayHints.variableTypes.enabled": true, | |
"javascript.inlayHints.parameterNames.enabled": "all", | |
"javascript.inlayHints.variableTypes.enabled": true, | |
"javascript.inlayHints.propertyDeclarationTypes.enabled": true, | |
"javascript.inlayHints.parameterTypes.enabled": true, | |
"javascript.inlayHints.functionLikeReturnTypes.enabled": true, | |
"javascript.inlayHints.enumMemberValues.enabled": true, | |
"go.toolsManagement.autoUpdate": true, | |
"workbench.editor.tabActionLocation": "left", | |
"window.nativeTabs": true, | |
"window.titleBarStyle": "native", | |
"editor.fontSize": 12, | |
"editor.cursorBlinking": "smooth", | |
"editor.cursorSmoothCaretAnimation": "on", | |
"errorLens.scrollbarHackEnabled": true, | |
"workbench.commandPalette.experimental.suggestCommands": true, | |
"terminal.integrated.stickyScroll.enabled": false, | |
"go.editorContextMenuCommands": { "removeTags": true, "fillStruct": true }, | |
"js/ts.implicitProjectConfig.experimentalDecorators": true, | |
"typescript.experimental.tsserver.web.typeAcquisition.enabled": true, | |
"typescript.tsserver.experimental.enableProjectDiagnostics": true, | |
"git.showPushSuccessNotification": true, | |
"multiDiffEditor.experimental.enabled": true, | |
"errorLens.fontFamily": "Monaspace Radon", | |
"errorLens.fontSize": "12", | |
"editor.guides.bracketPairsHorizontal": false, | |
"codeium.enableCodeLens": false, | |
"editor.minimap.enabled": false, | |
"window.zoomLevel": 1, | |
"cmake.showOptionsMovedNotification": false, | |
"window.commandCenter": false, | |
"workbench.layoutControl.enabled": false, | |
"workbench.tree.enableStickyScroll": false, | |
"accessibility.signals.noInlayHints": { "sound": "on" }, | |
"accessibility.signals.chatRequestSent": { "sound": "auto" }, | |
"githubPullRequests.pullBranch": "never", | |
"vue.inlayHints.vBindShorthand": true, | |
"editor.inlayHints.enabled": "offUnlessPressed", | |
"editor.inlayHints.fontSize": 24, | |
"tooltitude.inlay.refs": true, | |
"[vue]": { "editor.defaultFormatter": "Vue.volar" }, | |
"git.replaceTagsWhenPull": true, | |
"tooltitude.useRefsView": false, | |
"tooltitude.codeLens.move.decl": false, | |
"tooltitude.codeLens.implIntfc": false, | |
"gitlens.codeLens.authors.enabled": false, | |
"gitlens.codeLens.authors.command": false, | |
"gitlens.codeLens.enabled": false, | |
"redhat.telemetry.enabled": true, | |
"terminal.integrated.enableImages": true, | |
"supermaven.enable": { | |
"*": true | |
}, | |
"git.verboseCommit": true, | |
"vue.autoInsert.dotValue": true, | |
"vue.splitEditors.icon": true, | |
"gitlens.launchpad.indicator.enabled": false, | |
"supermaven.allowGitignore": true, | |
"cmake.pinnedCommands": [ | |
"workbench.action.tasks.configureTaskRunner", | |
"workbench.action.tasks.runTask" | |
], | |
"lldb.library": "/Applications/Xcode-beta.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/LLDB", | |
"lldb.launch.expressions": "native", | |
// "github.copilot.advanced": { | |
// "debug.overrideProxyUrl": "http://localhost:11437" | |
// }, | |
// "http.proxy": "http://localhost:11435", | |
"http.proxyStrictSSL": false, | |
"supermaven.otherWarning": false, | |
"accessibility.underlineLinks": true, | |
"todo-tree.ripgrep.ripgrep": "/opt/homebrew/bin/rg", | |
"scm.experimental.showHistoryGraph": true, | |
"scm.providerCountBadge": "auto" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment