{
// 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 }", // 格式化代码,大括号. AlignConsecutiveAssignments: true,
"go.useCodeSnippetsOnFunctionSuggest": true, // go代码自动补全括号
"editor.autoClosingBrackets": "beforeWhitespace",
"terminal.integrated.shell.osx": "/bin/zsh",
"editor.fontSize": 16,
"editor.wordWrap": "off", // 自动换行
"explorer.confirmDelete": false,
//指定终端的字体 (注意名字要完全符合font名)
"terminal.integrated.fontFamily": "Monaco for Powerline",
//指定终端字大小
"terminal.integrated.fontSize": 14,
"editor.detectIndentation": false,
"editor.tabSize": 4,
"editor.autoIndent": "advanced",
"editor.formatOnPaste": true, // 粘贴时格式化
"editor.formatOnSave": true, // 保存时格式化
"editor.formatOnType": true, // 键入时格式化
//快速添加文件头部注释和函数注释
"fileheader.configObj": {
"createFileTime": true, //设置为true则为文件新建时候作为date,否则注释生成时间为date
"autoAdd": false, //自动生成注释
"annotationStr": {
"head": "/*",
"middle": " * @",
"end": " */\n",
"use": true //设置自定义注释可用
},
},
"fileheader.cursorMode": {
"description": "",
"param ": "",
"return": ""
},
"fileheader.customMade": {
"Description": "", //文件内容描述
"Author": "liutq", //编辑人
"Date": "Do not edit", //时间
"LastEditTime": "Do not edit",
// "LastEditors": "liutq",
// "Reference": ""
},
"python.formatting.autopep8Args": [
"--max-line-length=1000",
"--ignore",
"E402"
],
"git.enableSmartCommit": true,
"explorer.confirmDragAndDrop": false,
"editor.hover.delay": 100,
"remote.SSH.showLoginTerminal": true,
"window.zoomLevel": 0,
"git.ignoreLegacyWarning": true,
"sqltools.format": {
"language": "sql",
"linesBetweenQueries": 2,
"reservedWordCase": "upper"
},
"editor.accessibilitySupport": "off",
"http.proxySupport": "off",
"files.autoSave": "afterDelay",
"workbench.editorAssociations": {
"*.md": "default",
"*.ipynb": "jupyter.notebook.ipynb"
},
"python.pythonPath": "/usr/bin/python3",
"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"
}
},
"workbench.startupEditor": "none",
"go.toolsManagement.autoUpdate": true,
"workbench.editor.enablePreview": false,
"python.defaultInterpreterPath": "/usr/bin/python3",
"security.workspace.trust.untrustedFiles": "open",
}
mac中vscode配置文件
最新推荐文章于 2023-05-01 22:24:44 发布