配置如下
{
"files.associations": {
"string.h": "c",
"stdio.h": "c"
},
"C_Cpp.clang_format_fallbackStyle": "{ BasedOnStyle: Google, IndentWidth: 4 }",
"editor.fontSize": 18,
// "editor.lineHeight": 28,
// 設定主題theme
// "workbench.colorTheme": "Atom One Dark",
// 重新設定tabsize
"editor.tabSize": 2,
// #每次保存的時候自動格式化
"editor.formatOnSave": true,
// #每次保存的時候將代碼按eslint格式進行修復
"eslint.autoFixOnSave": true,
// 添加 vue 支持
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "vue",
"autoFix": true
}
],
// #去掉代碼結尾的分號
"prettier.semi": false,
// #使用帶引號替代雙引號
"prettier.singleQuote": true,
// #讓函數(名)和後面的括號之間加個空格
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
// #這個按用戶自身習慣選擇
"vetur.format.defaultFormatter.html": "js-beautify-html",
// #讓vue中的js按編輯器自帶的ts格式進行格式化
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-aligned"
// #vue組件中html代碼格式化樣式
}
},
"vetur.validation.template": false,
// 安裝vscode-icons圖標插件
"workbench.iconTheme": "vscode-icons",
// 編譯器字體
"editor.fontFamily": "'Fira Code',monospace",
// "editor.fontFamily": "'Fira Code',monospace",
// "editor.fontFamily": "'Fira Code', 'Droid Sans Mono', 'Courier New', monospace, 'Droid Sans Fallback'",
// 格式化stylus, 需安裝Manta's Stylus Supremacy插件
"stylusSupremacy.insertColons": true, // 是否插入冒號
"stylusSupremacy.insertSemicolons": false, // 是否插入分好
"stylusSupremacy.insertBraces": false, // 是否插入大括號
"stylusSupremacy.insertNewLineAroundImports": false, // import之後是否換行
"stylusSupremacy.insertNewLineAroundBlocks": false, // 兩個選擇器中是否換行
"terminal.integrated.fontFamily": "Meslo LG M for Powerline",
"editor.renderControlCharacters": true,
"editor.renderWhitespace": "all",
"dart.sdkPath": "/Users/tt/Documents/Sdk/dart-sdk",
"dart.flutterSdkPath": "/Users/tt/Documents/Sdk/flutter",
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 6000,
"editor.wordWrap": "on",
"telemetry.enableCrashReporter": false,
"telemetry.enableTelemetry": false,
"update.enableWindowsBackgroundUpdates": false,
"workbench.startupEditor": "newUntitledFile",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"C_Cpp.updateChannel": "Insiders",
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"code-runner.executorMap": {
"java": "cd $dir && javac -encoding utf-8 $fileName && java $fileNameWithoutExt"
},
"code-runner.runInTerminal": true,
"[java]": {
"editor.defaultFormatter": "redhat.java"
},
"editor.defaultFormatter": "HookyQR.beautify",
"[go]": {
"editor.defaultFormatter": "ms-vscode.Go"
},
"java.errors.incompleteClasspath.severity": "ignore",
"window.zoomLevel": -1,
"terminal.integrated.fontSize": 14,
"debug.console.fontSize": 14,
"terminal.integrated.shell.osx": "/bin/zsh",
"[c]": {
"editor.defaultFormatter": "ms-vscode.cpptools"
},
"editor.codeActionsOnSave": {
// #每次保存的時候將代碼按eslint格式進行修復
"source.fixAll.eslint": true,
"eslint.autoFixOnSave": true,
}
}