{
//editor相关
"editor.fontSize": 18,
"editor.wordWrap": "on", // 自动换行
"explorer.confirmDelete": false,
"editor.detectIndentation": false,
"editor.tabSize": 4,
"editor.autoIndent": "advanced",
"editor.formatOnPaste": true, // 粘贴时格式化
"editor.formatOnSave": true, // 保存时格式化
"editor.formatOnType": true, // 键入时格式化
// terminal相关
"terminal.integrated.fontFamily": "consolas", //指定终端的字体
"terminal.integrated.fontSize": 16, //指定终端字大小
"terminal.integrated.shell.windows": "C:\\Users\\Administrator\\AppData\\Local\\Microsoft\\WindowsApps\\ubuntu.exe", //指定终端使用的程序
// https://clang.llvm.org/docs/ClangFormatStyleOptions.html
"C_Cpp.updateChannel": "Insiders",
"C_Cpp.clang_format_style": "{ BasedOnStyle: Google, IndentWidth: 4, AccessModifierOffset: -4, AlignTrailingComments: true, ColumnLimit: 0 }", // 格式化代码,大括号
"editor.autoClosingBrackets": "beforeWhitespace",
// "terminal.integrated.shell.osx": "/bin/zsh",
"git.enableSmartCommit": true,
"explorer.confirmDragAndDrop": false,
"editor.hover.delay": 100,
"remote.SSH.showLoginTerminal": true,
"git.ignoreLegacyWarning": true,
"C_Cpp.clang_format_sortIncludes": false,
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
"go.alternateTools": {},
"go.useLanguageServer": true,
"breadcrumbs.enabled": true,
"editor.renderWhitespace": "none",
"editor.minimap.enabled": false,
"workbench.editor.enablePreview": false,
"plantuml.commandArgs": [],
"plantuml.server": "http://www.plantuml.com/plantuml",
"search.exclude": {
"**/*.log": true
},
"files.exclude": {
"**/*.log": true,
},
"workbench.colorTheme": "One Monokai",
"workbench.iconTheme": "material-icon-theme",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
//python相关
"python.autoComplete.addBrackets": true,
"python.autoComplete.extraPaths": [
"C:/Program Files/Python38/Scripts",
"C:/Program Files/Python38/Lib/site-packages",
],
"python.analysis.extraPaths": [
"C:/Program Files/Python38/Scripts",
"C:/Program Files/Python38/Lib/site-packages"
],
"python.analysis.completeFunctionParens": true,
"python.formatting.provider": "none",
"python.formatting.yapfPath": "none",
"python.formatting.blackPath": "none",
"python.formatting.autopep8Path": "none",
"files.trimTrailingWhitespace": true,
"prettier.semi": true,
"go.toolsManagement.autoUpdate": true,
"liveServer.settings.donotShowInfoMsg": true,
"terminal.integrated.tabs.enabled": true,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_line_length": 120,
"wrap_attributes": "auto",
"end_with_newline": false
},
"prettier": {
// 不加分号
"semi": false,
// 用单引号
"singleQuote": true,
// 禁止随时添加逗号
"trailingComma": "none"
}
},
// go代码自动补全括号
"go.useCodeSnippetsOnFunctionSuggest": true,
// 自动完成未导入的包
"go.autocompleteUnimportedPackages": true,
"go.docsTool": "gogetdoc",
"go.formatTool": "goimports",
// 文件自动保存
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 2000,
"workbench.startupEditor": "none",
"security.workspace.trust.untrustedFiles": "open",
"explorer.autoReveal": false
}
windows中vscode配置文件
最新推荐文章于 2024-12-12 20:00:00 发布