VSCODE 设置:
基础设置:
{
//不做guess,保证所有的text是utf-8
"files.autoGuessEncoding": false,
//begin 所有的tab用space替换
"editor.detectIndentation": false,
"editor.tabSize": 2,
"editor.insertSpaces": true,
//end 所有的tab用space替换
"editor.lineNumbers": "off",
//"files.autoSave": "afterDelay"
"editor.formatOnSave": true,
// copy的时候到jira有用,对markdown
"editor.copyWithSyntaxHighlighting": false,
"editor.wordWrap": "on",
"editor.fontSize": 30,
"editor.accessibilityPageSize": 20,
"editor.suggestFontSize": 30,
"debug.console.fontSize": 30,
"files.eol": "\n",
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
// markdown配置
"[markdown]": {
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
//不依赖其他
"editor.wordBasedSuggestions": false,
"editor.snippetSuggestions": "top",
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
},
// goalang配置
"go.formatTool": "goimports",
"go.useLanguageServer": true,
//SimonSiefke.prettier-vscode 比esbenp.prettier-vscode 语言多
// 会自动替换掉shell的,修改一下,一个一个修改,好像不加也有效
// 并且对shell没有影响
//"editor.defaultFormatter": "SimonSiefke.prettier-vscode",
//必须和 lzy\git-tempalte里面的配置一致
"shellformat.flag": "-ln bash -i 2 -ci",
"python.defaultInterpreterPath": "C:\\Python37\\python.exe",
"[json]": {
"editor.defaultFormatter": "SimonSiefke.prettier-vscode"
},
"security.workspace.trust.untrustedFiles": "open",
"security.workspace.trust.enabled": false,
"[html]": {
"editor.defaultFormatter": "SimonSiefke.prettier-vscode"
},
"markdownlint.config": {
"default": true,
"MD013": false,
"MD024": false,
"MD025": false,
"MD026": false,
"MD033": false,
"MD034": false,
"MD036": false,
"MD046": false
},
"editor.accessibilitySupport": "off",
// bookmarks
//自定义的,可以独立升级,并且和precommit用的同一个
"shellcheck.executablePath": "D:\\tools\\git-tools\\shellcheck",
"window.zoomLevel": -1,
"remote.SSH.remotePlatform": {
"dev": "linux"
},
"workbench.editor.enablePreview": false,
"shellformat.path": "D:\\tools\\git-tools\\shfmt.exe",
//markdown
"markdown.extension.orderedList.marker": "one",
"[dockerfile]": {
"editor.defaultFormatter": "ms-azuretools.vscode-docker"
},
"[javascript]": {
"editor.defaultFormatter": "SimonSiefke.prettier-vscode"
},
"git.openRepositoryInParentFolders": "never",
"markdownlint.run": "onSave"
}