This commit is contained in:
zouzhiwen 2026-07-30 16:52:18 +08:00
parent 6e27ce1040
commit 0f9c39a01b
2 changed files with 566 additions and 0 deletions

251
keybindings.json Normal file
View File

@ -0,0 +1,251 @@
// Place your key bindings in this file to override the defaults
[
{
"command": "acceptSelectedSuggestion",
"key": "enter",
"when": "editorTextFocus && suggestWidgetVisible"
},
{
"key": "alt+cmd+l",
"command": "-toggleSearchEditorContextLines",
"when": "inSearchEditor"
},
{
"key": "alt+cmd+l",
"command": "-toggleFindInSelection",
"when": "editorFocus"
},
{
"key": "alt+cmd+l",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
},
{
"key": "alt+cmd+left",
"command": "-workbench.action.previousEditor"
},
{
"key": "alt+cmd+right",
"command": "-workbench.action.nextEditor"
},
{
"key": "alt+cmd+left",
"command": "workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "ctrl+-",
"command": "-workbench.action.navigateBack",
"when": "canNavigateBack"
},
{
"key": "alt+cmd+right",
"command": "workbench.action.navigateForward",
"when": "canNavigateForward"
},
{
"key": "ctrl+shift+-",
"command": "-workbench.action.navigateForward",
"when": "canNavigateForward"
},
{
"key": "alt+cmd+enter",
"command": "editor.action.insertLineBefore",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+enter",
"command": "-editor.action.insertLineBefore",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+l",
"command": "workbench.action.gotoLine"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "alt+cmd+z",
"command": "git.clean"
},
{
"key": "shift+cmd+enter",
"command": "editor.action.insertLineAfter",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+enter",
"command": "-editor.action.insertLineAfter",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+enter",
"command": "editor.action.quickFix",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+.",
"command": "-editor.action.quickFix",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "cmd+backspace",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "alt+cmd+o",
"command": "autoflake-extension.run"
},
{
"key": "f11",
"command": "editor.action.marker.nextInFiles",
"when": "editorFocus"
},
{
"key": "f8",
"command": "-editor.action.marker.nextInFiles",
"when": "editorFocus"
},
{
"key": "f10",
"command": "editor.action.diffReview.next",
"when": "isInDiffEditor"
},
{
"key": "f7",
"command": "-editor.action.diffReview.next",
"when": "isInDiffEditor"
},
{
"key": "f8",
"command": "workbench.action.debug.stepOver",
"when": "debugState == 'stopped'"
},
{
"key": "f10",
"command": "-workbench.action.debug.stepOver",
"when": "debugState == 'stopped'"
},
{
"key": "f7",
"command": "workbench.action.debug.stepInto",
"when": "debugState != 'inactive'"
},
{
"key": "f11",
"command": "-workbench.action.debug.stepInto",
"when": "debugState != 'inactive'"
},
{
"key": "shift+f6",
"command": "-workbench.action.focusPreviousPart"
},
{
"key": "shift+f6",
"command": "editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "f2",
"command": "-editor.action.rename",
"when": "editorHasRenameProvider && editorTextFocus && !editorReadonly"
},
{
"key": "alt+cmd+o",
"command": "editor.action.organizeImports",
"when": "editorTextFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)source\\.organizeImports\\b/"
},
{
"key": "shift+alt+o",
"command": "-editor.action.organizeImports",
"when": "editorTextFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)source\\.organizeImports\\b/"
},
{
"key": "alt+cmd+b",
"command": "-workbench.action.toggleAuxiliaryBar"
},
{
"key": "alt+cmd+k",
"command": "-bookmarks.toggle",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+k",
"command": "bookmarks.toggleLabeled"
},
{
"key": "alt+cmd+u",
"command": "cursorUndo",
"when": "textInputFocus"
},
{
"key": "cmd+u",
"command": "-cursorUndo",
"when": "textInputFocus"
},
{
"key": "cmd+f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && isWeb"
},
{
"key": "alt+cmd+b",
"command": "editor.action.goToImplementation",
"when": "editorHasImplementationProvider && editorTextFocus"
},
{
"key": "cmd+f12",
"command": "-editor.action.goToImplementation",
"when": "editorHasImplementationProvider && editorTextFocus"
},
{
"key": "cmd+u",
"command": "editor.action.revealDeclaration"
},
{
"key": "cmd+f12",
"command": "workbench.action.gotoSymbol",
"when": "!accessibilityHelpIsShown && !accessibleViewIsShown"
},
{
"key": "alt+f7",
"command": "references-view.showCallHierarchy",
"when": "editorHasCallHierarchyProvider"
},
{
"key": "shift+alt+h",
"command": "-references-view.showCallHierarchy",
"when": "editorHasCallHierarchyProvider"
},
{
"key": "cmd+r",
"command": "workbench.action.openRecent"
},
{
"key": "ctrl+r",
"command": "-workbench.action.openRecent"
},
{
"key": "alt+cmd+s",
"command": "workbench.action.toggleUnifiedSidebarFromKeyboard",
"when": "!isAuxiliaryWindowFocusedContext"
}
]

315
settings.json Normal file
View File

@ -0,0 +1,315 @@
{
"files.autoSave": "onWindowChange",
"editor.fontSize": 16,
"editor.fontFamily": "'Maple Mono NF CN','Cascadia Code',Monaco,Consola,'Courier New', monospace",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"leetcode.endpoint": "leetcode-cn",
"leetcode.defaultLanguage": "java",
"leetcode.workspaceFolder": "/Users/zouzhiwen/project/mypro/offer/src/leecode/java",
"editor.tabSize": 2,
"[python]": {
"editor.formatOnType": true,
"editor.defaultFormatter": "ms-python.black-formatter"
},
"git.enableSmartCommit": true,
"notebook.diff.enablePreview": false,
"workbench.editor.enablePreview": false,
"workbench.editor.wrapTabs": true,
"security.workspace.trust.untrustedFiles": "newWindow",
"diffEditor.ignoreTrimWhitespace": false,
"search.exclude": {
"**/.git": true,
"**/.github": true,
"**/.nuxt": true,
"**/.output": true,
"**/.pnpm": true,
"**/.vscode": true,
"**/.yarn": true,
"**/bower_components": true,
"**/dist/**": true,
"**/logs": true,
"**/node_modules": true,
"**/out/**": true,
"**/package-lock.json": true,
"**/pnpm-lock.yaml": true,
"**/tmp": true,
"**/yarn.lock": true
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.fontWeight": "normal",
"gitlens.hovers.currentLine.over": "line",
"terminal.integrated.fontSize": 14,
"terminal.integrated.fontFamily": "'BitstromWera Nerd Font Mono'",
"gitlens.currentLine.enabled": false,
"gitlens.graph.minimap.enabled": false,
"workbench.editor.empty.hint": "hidden",
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"editor.multiCursorLimit": 100000,
"C_Cpp.autocomplete": "default",
"[cpp]": {
"editor.quickSuggestions": {
"comments": "on",
"strings": "on",
"other": "on"
}
},
"[c]": {
"editor.quickSuggestions": {
"comments": "on",
"strings": "on",
"other": "on"
}
},
"editor.quickSuggestions": {
"comments": "on",
"strings": "on"
},
"remote.extensionKind": {
"GitHub.copilot": [
"ui"
],
"github.copilot-chat": [
"ui"
]
},
"labuladong-leetcode.defaultLanguage": "python3",
"github.copilot.enable": {
"*": false,
"plaintext": false,
"markdown": false,
"scminput": false
},
"cursor.cpp.disabledLanguages": [
"plaintext",
"markdown",
"scminput",
"javascript"
],
"editorjumper.ideConfigurations": [
{
"name": "IDEA",
"isCustom": false,
"hidden": false,
"commandPath": null
},
{
"name": "WebStorm",
"isCustom": false,
"hidden": false,
"commandPath": null
},
{
"name": "PyCharm",
"isCustom": false,
"hidden": false,
"commandPath": null
},
{
"name": "GoLand",
"isCustom": false,
"hidden": false,
"commandPath": null
},
{
"name": "CLion",
"isCustom": false,
"hidden": false,
"commandPath": null
},
{
"name": "PhpStorm",
"isCustom": false,
"hidden": false,
"commandPath": null
},
{
"name": "RubyMine",
"isCustom": false,
"hidden": false,
"commandPath": null
},
{
"name": "Rider",
"isCustom": false,
"hidden": false,
"commandPath": null
},
{
"name": "Android Studio",
"isCustom": false,
"hidden": false,
"commandPath": null
},
{
"name": "Xcode",
"commandPath": null,
"isCustom": false,
"hidden": false
}
],
"labuladong-leetcode.workspaceFolder": "/Users/kazusa/project/java/offer/src/leecode/python",
"http.proxy": "http://127.0.0.1:7890",
"git.confirmSync": false,
"workbench.preferredDarkColorTheme": "Catppuccin Macchiato",
"window.systemColorTheme": "dark",
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--line-length",
"88"
],
"python.linting.enabled": true,
"python.linting.pylintEnabled": true,
"python.linting.lintOnSave": true,
"python.linting.mypyEnabled": true,
"java.configuration.updateBuildConfiguration": "disabled",
"java.compile.nullAnalysis.mode": "disabled",
"java.inlayHints.parameterNames.enabled": "none",
"java.autobuild.enabled": false,
"java.jdt.ls.vmargs": "-Xmx512m -XX:+UseG1GC",
"java.saveActions.organizeImports": false,
"java.format.onType.enabled": false,
"java.format.onSave.enabled": false,
"java.import.gradle.enabled": true,
"java.import.maven.enabled": true,
"java.completion.importOrder": [
"java",
"javax",
"org",
"com",
""
],
"java.format.settings.url": "",
"java.format.settings.profile": "GoogleStyle",
"java.codeGeneration.generateComments": true,
"java.codeGeneration.useBlocks": true,
"remote.SSH.remotePlatform": {
"master": "linux",
"remote": "linux",
"sit-service": "linux"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[java]": {
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.organizeImports": "never"
},
"editor.defaultFormatter": "redhat.java"
},
"workbench.iconTheme": "catppuccin-latte",
"terminal.integrated.fontLigatures.fallbackLigatures": [
"<--",
"<---",
"<<-",
"<-",
"->",
"->>",
"-->",
"--->",
"<==",
"<===",
"<<=",
"<=",
"=>",
"=>>",
"==>",
"===>",
">=",
">>=",
"<->",
"<-->",
"<--->",
"<---->",
"<=>",
"<==>",
"<===>",
"<====>",
"::",
":::",
"<~~",
"</",
"</>",
"/>",
"~~>",
"==",
"!=",
"/=",
"~=",
"<>",
"===",
"!==",
"!===",
"<:",
":=",
"*=",
"*+",
"<*",
"<*>",
"*>",
"<|",
"<|>",
"|>",
"+*",
"=*",
"=:",
":>",
"/*",
"*/",
"+++",
"<!--",
"<!---"
],
// Lombok
"java.jdt.ls.lombokSupport.enabled": true,
// -
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit"
},
// Java
"java.saveActions.organizeImports": false,
"java.import.information.showUnusedImports": true,
//
"java.completion.importOrder": [
"java",
"javax",
"org.springframework",
"org",
"com"
],
// Java
"[java]": {
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.organizeImports": false
}
},
"workbench.colorTheme": "One Dark",
"catppuccin.italicKeywords": false,
"oneDark.italic": false,
"labuladong-leetcode.hint.commandShortcut": false,
"labuladong-leetcode.hint.configWebviewMarkdown": false,
"workbench.layoutControl.enabled": false,
"cursor.composer.shouldAllowCustomModes": true,
"python.defaultInterpreterPath": "/opt/homebrew/bin/python3",
"cursorStats.language": "zh",
"editor.accessibilitySupport": "on",
"workbench.editor.editorActionsLocation": "hidden",
"workbench.editor.showTabs": "multiple",
"java.import.generatesMetadataFilesAtProjectRoot": false,
"typescript.experimental.useTsgo": true,
"window.autoDetectColorScheme": false
}