-
-
Save fanlumaster/62bbfab7ed9cd7db93b439f64f01bbeb 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
{ | |
// 过期的的配置 | |
// copilot | |
// "github.copilot.enable": { | |
// "*": false, | |
// "yaml": false, | |
// "plaintext": false, | |
// "markdown": false | |
// }, | |
// Lua | |
// "Lua.diagnostics.disable": [ | |
// "lowercase-global" | |
// ], | |
"security.workspace.trust.untrustedFiles": "open", | |
"redhat.telemetry.enabled": true, | |
"xml.server.binary.trustedHashes": [ | |
"75545f1685acea66aed67cb886c59e49cbbf0f51c25c89baad76cf0a3ee962a7" | |
], | |
"editor.formatOnSave": true, | |
"vim.useSystemClipboard": true, | |
"workbench.iconTheme": "material-icon-theme", | |
"explorer.confirmDragAndDrop": false, | |
"explorer.confirmDelete": false, | |
"editor.fontFamily": "'CaskaydiaCove NF Mono', 'Cascadia Mono', 'Source Han Sans CN', '微软雅黑', Consolas, 'Courier New', monospace", | |
"editor.fontLigatures": true, | |
"workbench.startupEditor": "none", | |
"git.enableSmartCommit": true, | |
"git.confirmSync": false, | |
"python.formatting.autopep8Args": [ | |
"--ignore", | |
"E402" | |
], | |
"python.analysis.diagnosticSeverityOverrides": { | |
"reportUnsupportedDunderAll": "none" | |
}, | |
// c++ 格式化设置 | |
"C_Cpp.clang_format_style": "{BasedOnStyle: Google, IndentWidth: 4, ColumnLimit: 160}", | |
"[html]": { | |
"editor.defaultFormatter": "vscode.html-language-features" | |
}, | |
"editor.unicodeHighlight.allowedLocales": { | |
"zh-hans": true, | |
"zh-hant": true | |
}, | |
// 禁用 markdown 的自动补全 | |
"[markdown]": { | |
"editor.quickSuggestions": { | |
"other": "off", | |
"comments": "off", | |
"strings": "off" | |
} | |
}, | |
"[ahk]": { | |
"files.encoding": "utf8bom", | |
"editor.quickSuggestions": { | |
"other": "on", | |
"comments": "on", | |
"strings": "on" | |
} | |
}, | |
// 光标的动画效果 | |
"editor.cursorBlinking": "smooth", | |
"editor.cursorSmoothCaretAnimation": "on", | |
"terminal.integrated.defaultProfile.windows": "PowerShell", | |
"terminal.integrated.fontFamily": "'CaskaydiaCove NF Mono', '微软雅黑'", | |
"markdown.preview.fontFamily": "CaskaydiaCove NF Mono, -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif", | |
"editor.detectIndentation": false, | |
// language specification | |
"[javascript]": { | |
"editor.tabSize": 2, | |
}, | |
"[css]": { | |
"editor.tabSize": 2, | |
}, | |
"[jsonc]": { | |
"editor.tabSize": 2, | |
}, | |
"[json]": { | |
"editor.tabSize": 2, | |
}, | |
"[lua]": { | |
"editor.tabSize": 2, | |
}, | |
"[javascriptreact]": { | |
"editor.tabSize": 2, | |
}, | |
"[scss]": { | |
"editor.tabSize": 2, | |
}, | |
"[java]": { | |
"editor.tabSize": 2, | |
}, | |
"editor.wordWrap": "on", | |
"python.terminal.executeInFileDir": true, | |
"terminal.integrated.bellDuration": 100000, | |
"editor.unicodeHighlight.invisibleCharacters": false, | |
"editor.unicodeHighlight.allowedCharacters": { | |
"〇": true | |
}, | |
"workbench.colorCustomizations": { | |
"editorCursor.foreground": "#16C60C", | |
"editor.lineHighlightBackground": "#292e42", | |
// 状态栏颜色设置 | |
"statusBar.background": "#1e1e1e", | |
"statusBar.foreground": "#9b9b8f", | |
"statusBar.border": "#333a48", | |
}, | |
"editor.minimap.autohide": true, | |
"editor.minimap.enabled": false, | |
"editor.hideCursorInOverviewRuler": true, | |
"editor.scrollbar.horizontal": "hidden", | |
"editor.scrollbar.vertical": "hidden", | |
"editor.scrollbar.verticalScrollbarSize": 0, | |
"workbench.layoutControl.enabled": false, | |
"editor.renderLineHighlight": "line", | |
"editor.occurrencesHighlight": false, | |
"editor.selectionHighlight": false, | |
// vim settings | |
"vim.easymotion": true, | |
"vim.incsearch": true, | |
"vim.useCtrlKeys": true, | |
"vim.hlsearch": true, | |
"vim.leader": "<space>", | |
"vim.handleKeys": { | |
"<C-a>": false, | |
"<C-f>": false | |
}, | |
"vim.normalModeKeyBindings": [ | |
{ | |
"before": [ | |
"leader", | |
"e" | |
], | |
"commands": [ | |
{ | |
"command": "workbench.action.toggleSidebarVisibility" | |
} | |
] | |
}, | |
// test for cmake command | |
{ | |
"before": [ | |
"leader", | |
"l" | |
], | |
"commands": [ | |
{ | |
"command": "workbench.action.terminal.sendSequence", | |
"args": { | |
"text": "clear \u000D" | |
} | |
}, | |
{ | |
"command": "cmake.launchTarget" | |
} | |
] | |
}, | |
{ | |
"before": [ | |
"leader", | |
"f" | |
], | |
"commands": [ | |
{ | |
"command": "revealInExplorer" | |
} | |
] | |
}, | |
{ | |
"before": [ | |
"leader", | |
"h" | |
], | |
"commands": [ | |
":noh" | |
] | |
}, | |
{ | |
"before": [ | |
"leader", | |
"c" | |
], | |
"commands": [ | |
":q" | |
] | |
}, | |
// 保存,但不格式化 | |
{ | |
"before": [ | |
"leader", | |
"w" | |
], | |
"commands": [ | |
"workbench.action.files.saveWithoutFormatting" | |
] | |
}, | |
// 这个保存并格式化可以用 :w 来代替 | |
// { | |
// "before": [ | |
// "leader", | |
// "q" | |
// ], | |
// "commands": [ | |
// ":w" | |
// ] | |
// }, | |
{ | |
"before": [ | |
"leader", | |
"a" | |
], | |
"commands": [ | |
{ | |
"command": "workbench.action.toggleActivityBarVisibility" | |
} | |
] | |
}, | |
{ | |
"before": [ | |
"leader", | |
"b" | |
], | |
"commands": [ | |
{ | |
"command": "workbench.action.toggleStatusbarVisibility" | |
} | |
] | |
}, | |
{ | |
"before": [ | |
"leader", | |
"p", | |
"y" | |
], | |
"commands": [ | |
"workbench.action.files.saveAll", | |
{ | |
"command": "workbench.action.terminal.sendSequence", | |
"args": { | |
"text": "clear \u000D" | |
} | |
}, | |
"workbench.action.terminal.focus", | |
{ | |
"command": "workbench.action.terminal.sendSequence", | |
"args": { | |
"text": "python '${file}'\u000D" | |
} | |
}, | |
"workbench.action.focusActiveEditorGroup" | |
] | |
}, | |
{ | |
"before": [ | |
"leader", | |
"r", | |
"u" | |
], | |
"commands": [ | |
"workbench.action.files.saveAll", | |
{ | |
"command": "workbench.action.terminal.sendSequence", | |
"args": { | |
"text": "clear \u000D" | |
} | |
}, | |
"workbench.action.terminal.focus", | |
{ | |
"command": "workbench.action.terminal.sendSequence", | |
"args": { | |
"text": "ruby '${file}'\u000D" | |
} | |
}, | |
"workbench.action.focusActiveEditorGroup" | |
] | |
}, | |
// autohotkey | |
{ | |
"before": [ | |
"leader", | |
"k", | |
"k" | |
], | |
"commands": [ | |
"workbench.action.files.saveAll", | |
{ | |
"command": "workbench.action.terminal.sendSequence", | |
"args": { | |
"text": "clear \u000D" | |
} | |
}, | |
"workbench.action.terminal.focus", | |
{ | |
"command": "workbench.action.terminal.sendSequence", | |
"args": { | |
"text": "${file} \u000D" | |
} | |
}, | |
"workbench.action.focusActiveEditorGroup" | |
], | |
}, | |
// 在 terminal 中执行 haskell 程序 | |
{ | |
"before": [ | |
"leader", | |
"r", | |
"h" | |
], | |
"commands": [ | |
"workbench.action.files.saveAll", | |
{ | |
"command": "workbench.action.terminal.sendSequence", | |
"args": { | |
"text": "clear \u000D" | |
} | |
}, | |
"workbench.action.terminal.focus", | |
{ | |
"command": "workbench.action.terminal.sendSequence", | |
"args": { | |
"text": "runhaskell ${file} \u000D" | |
} | |
}, | |
"workbench.action.focusActiveEditorGroup" | |
], | |
}, | |
{ | |
"before": [ | |
"leader", | |
"g", | |
"g" | |
], | |
"commands": [ | |
{ | |
"command": "workbench.action.quickOpen" | |
} | |
] | |
}, | |
{ | |
"before": [ | |
"leader", | |
"g", | |
"f" | |
], | |
"commands": [ | |
{ | |
"command": "workbench.view.search" | |
} | |
] | |
}, | |
// run java codes | |
{ | |
"before": [ | |
"leader", | |
"j", | |
"a" | |
], | |
"commands": [ | |
{ | |
"command": "java.debug.runJavaFile" | |
} | |
] | |
}, | |
{ | |
"before": [ | |
"leader", | |
"r", | |
], | |
"commands": [ | |
{ | |
"command": "workbench.action.debug.start" | |
} | |
] | |
}, | |
// { | |
// "key": "ctrl+f5", | |
// "command": "workbench.action.debug.run", | |
// "when": "debuggersAvailable && debugState != 'initializing'" | |
// }, | |
], | |
"vim.visualModeKeyBindings": [ | |
{ | |
"before": [ | |
">" | |
], | |
"commands": [ | |
"editor.action.indentLines" | |
] | |
}, | |
{ | |
"before": [ | |
"<" | |
], | |
"commands": [ | |
"editor.action.outdentLines" | |
] | |
}, | |
], | |
"vim.normalModeKeyBindingsNonRecursive": [ | |
{ | |
"before": [ | |
"u" | |
], | |
"commands": [ | |
"undo" | |
] | |
}, | |
{ | |
"before": [ | |
"C-r" | |
], | |
"commands": [ | |
"redo" | |
] | |
} | |
], | |
// vim 的 easymotion 插件的高亮字符的前景色 | |
"vim.easymotionMarkerForegroundColorOneChar": "#DF5452", | |
// 关闭 snippet 的阻止快速建议的行为 | |
"editor.suggest.snippetsPreventQuickSuggestions": false, | |
"editor.guides.bracketPairsHorizontal": false, | |
// 开启 vim-surround | |
"vim.surround": true, | |
// 扩展忽视建议 | |
"extensions.ignoreRecommendations": true, | |
// cmake 配置 | |
"cmake.configureOnOpen": true, | |
// 编辑器内联的建议 | |
"editor.inlineSuggest.enabled": true, | |
// 关闭 terminal 中的多行粘贴的警告 | |
"terminal.integrated.enableMultiLinePasteWarning": false, | |
// 窗口的缩放程度 | |
"window.zoomLevel": 1, | |
// 关闭不明 unicode 字符的高亮 | |
"editor.unicodeHighlight.ambiguousCharacters": false, | |
// 修改窗口的风格为 windows 原生风格 | |
"window.titleBarStyle": "native", | |
// 标签栏和面包屑的显示和隐藏 | |
"workbench.editor.showTabs": true, | |
"breadcrumbs.enabled": false, | |
// 修改窗口标题的显示文字 | |
"window.title": "💖${folderName}-FanyFull", | |
// 我们在文件管理器中使用 vscode 打开文件时,确保其会在新的 vscode 窗口中打开 | |
"window.openFilesInNewWindow": "on", | |
// 将 manifest 文件关联到 xml 文件,这样,manifest 文件就可以使用 xml 的语法高亮了 | |
"files.associations": { | |
"*.manifest": "xml" | |
}, | |
// 大文件的最大可使用内存 | |
"files.maxMemoryForLargeFilesMB": 8192, | |
// 关闭 tab 标签的 X 按钮 | |
"workbench.editor.tabCloseButton": "off", | |
// 隐藏 tab 标签的 X 按钮,当然,如果 CloseButton 被隐藏了,那么这个设置其实是无所谓 | |
"workbench.editor.tabSizing": "shrink", | |
// accessibility | |
"editor.accessibilitySupport": "off", | |
"git.openRepositoryInParentFolders": "never", | |
"window.menuBarVisibility": "hidden", | |
// 设置 terminal 中的回滚限制为 100,000 行 | |
"terminal.integrated.scrollback": 1000000, | |
"[python]": { | |
"editor.formatOnType": true | |
}, | |
// 配置 haskell 的设置 | |
// "haskell.ghcMod.executablePath": "C:\\Users\\fanyfull\\AppData\\Roaming\\local\\bin\\ghc-mod.exe", | |
// "haskell.hlint.executablePath": "C:\\Users\\fanyfull\\AppData\\Roaming\\local\\bin\\hlint.exe", | |
// "haskell.ghcupExecutablePath": "C:\\FDisk\\haskell\\ghcup\\bin\\gucup.exe", | |
// "haskell.manageHLS": "PATH", | |
// 控制左侧的折叠按钮的显示 | |
"editor.showFoldingControls": "mouseover", | |
// 控制光标经过折叠代码区域时,代码是否会自动展开,true 表示不自动展开 | |
"vim.foldfix": true, | |
"python.formatting.provider": "black", | |
"python.linting.flake8CategorySeverity.E": "Hint", | |
"editor.acceptSuggestionOnCommitCharacter": false, | |
"workbench.colorTheme": "Default Dark+ Experimental", | |
"solargraph.formatting": true, | |
"solargraph.completion": true, | |
"solargraph.useBundler": true, | |
"solargraph.diagnostics": true, | |
"solargraph.symbols": true, | |
"workbench.activityBar.visible": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment