VSCode 设置
extensions.json
json
{
"recommendations": [
"christian-kohler.npm-intellisense",
"humao.rest-client",
"gruntfuggly.todo-tree",
"ecmel.vscode-html-css",
"usernamehw.errorlens",
"wmaurer.change-case",
"dbaeumer.vscode-eslint",
"pflannery.vscode-versionlens",
"zignd.html-css-class-completion",
"ritwickdey.liveserver",
"codeinchinese.englishchinesedictionary",
"ms-vscode.powershell",
"redhat.vscode-xml",
"streetsidesoftware.code-spell-checker",
"xyz.local-history",
"ionutvmi.path-autocomplete",
"intellsmi.comment-translate",
"wix.vscode-import-cost",
"jawa0919.adb-helper",
"ms-ceintl.vscode-language-pack-zh-hans",
"esbenp.prettier-vscode",
"vscjava.vscode-gradle",
"vue.volar",
"redjue.git-commit-plugin",
"vscode-icons-team.vscode-icons",
"dart-code.flutter",
"dart-code.dart-code",
"maattdd.gitless",
"mhutchie.git-graph"
]
}
global.code-snippets
{
"add file header": {
"prefix": "adf",
"body": [
"$BLOCK_COMMENT_START",
" @FilePath : ${RELATIVE_FILEPATH/[\\\\]/\\//g} ",
" @Date : $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND ",
" @Author : ${2:jawa0919 <jawa0919@163.com> } ",
" @Description : $1 ",
"$BLOCK_COMMENT_END"
],
"description": "add file header"
},
"add file header keyboard": {
"prefix": "adfkb",
"body": [
"$BLOCK_COMMENT_START",
" ┌─────────────────────────────────────────────────────────────┐",
" │┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐│",
" ││Esc│!1 │@2 │#3 │\\$4 │%5 │^6 │&7 │*8 │(9 │)0 │_- │+= │|\\ │`~ ││",
" │├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤│",
" ││ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{[ │}] │ BS ││",
" │├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤│",
" ││ Ctrl │ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│\" '│ Enter ││",
" │├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤│",
" ││ Shift │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│Shift │Fn ││",
" │└─────┬──┴┬──┴──┬┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴┬─────┴───┘│",
" │ │Fn │ Alt │ Space │ Alt │Win│ HHKB │",
" │ └───┴─────┴───────────────────────┴─────┴───┘ │",
" └─────────────────────────────────────────────────────────────┘",
"$BLOCK_COMMENT_END"
],
"description": "add file header keyboard"
},
"add file header sakyamuni": {
"prefix": "adfskm",
"body": [
"$BLOCK_COMMENT_START",
"",
" _oo0oo_",
" o8888888o",
" 88\" . \"88",
" (| -_- |)",
" 0\\ = /0",
" ___/`---'\\___",
" .' \\| |// '.",
" / \\\\||| : |||// \\",
" / _||||| -:- |||||- \\",
" | | \\\\\\ - /// | |",
" | \\_| ''\\---/'' |_/ |",
" \\ .-\\__ '-' ___/-. /",
" ___'. .' /--.--\\ `. .'___",
" .\"\" '< `.___\\_<|>_/___.' >' \"\".",
" | | : `- \\`.;`\\\\ _ /`;.`/ - ` : | |",
" \\ \\ `_. \\_ __\\ /__ _/ .-` / /",
" =====`-.____`.___ \\_____/___.-`___.-'===== ",
" `=---='",
"",
" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ",
" ",
"",
"$BLOCK_COMMENT_END"
],
"description": "add file header sakyamuni"
},
"todo snippet": {
"prefix": "todo",
"body": [
"$LINE_COMMENT TODO $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND $1"
],
"description": "new TODO snippet"
},
"fixme snippet": {
"prefix": "fixme",
"body": [
"$LINE_COMMENT FIXME $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND $1"
],
"description": "new FIXME snippet"
},
"console log with filename lineNumber": {
"scope": "javascript,typescript,javascriptreact,typescriptreact",
"prefix": "log",
"body": [
"console.log($1,'$TM_FILENAME ~ $TM_LINE_NUMBER');"
],
"description": "console log snippet"
},
"debugPrint with filename lineNumber": {
"scope": "dart",
"prefix": "log",
"body": [
"debugPrint('$1 $TM_FILENAME ~ $TM_LINE_NUMBER');"
],
"description": "debugPrint snippet"
}
}
keybindings.json
json
[
{
"key": "ctrl+alt+1",
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"name": "add file header"
}
}
]
settings.json
json
{
"workbench.iconTheme": "vscode-icons",
"search.exclude": {
"**/.git": true,
"**/.github": true,
"**/.history": true,
"**/.nuxt": true,
"**/.output": true,
"**/.pnpm": true,
"**/.vscode": true,
"**/.yarn": true,
"**/bower_components": true,
"**/dist/**": true,
"**/logs": true,
"**/node_modules": true,
"**/out/**": true,
"**/package-lock.json": true,
"**/pnpm-lock.yaml": true,
"**/tmp": true,
"**/yarn.lock": true
},
"editor.rulers": [
80,
100,
120,
150,
180,
200
],
"editor.guides.bracketPairs": true,
"editor.linkedEditing": true,
"editor.unicodeHighlight.allowedLocales": {
"zh-hans": true,
"zh-hant": true
},
"rest-client.previewOption": "exchange",
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.expand": false,
"explorer.fileNesting.patterns": {
"*.dart": "$(capture).freezed.dart, $(capture).g.dart",
"*.js": "$(capture).js.map, $(capture).*.js, $(capture)_*.js",
"*.jsx": "$(capture).js, $(capture).*.jsx, $(capture)_*.js, $(capture)_*.jsx",
"*.ts": "$(capture).js, $(capture).d.ts.map, $(capture).*.ts, $(capture)_*.js, $(capture)_*.ts",
"*.tsx": "$(capture).ts, $(capture).*.tsx, $(capture)_*.ts, $(capture)_*.tsx",
"package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml",
"pubspec.yaml": ".metadata, analysis_options.yaml, pubspec.lock",
".env": "*.env, .env.*, .envrc, env.d.ts",
".flutter-plugins": ".flutter-plugins-dependencies",
"main.dart": "main_*.dart"
},
"github.gitProtocol": "ssh",
"files.eol": "\n",
"files.associations": {
"*.arb": "json",
"*.config.json": "jsonc",
"*Config.json": "jsonc"
},
"path-autocomplete.pathMappings": {
"@": "${workspaceFolder}/src"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[snippets]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"cSpell.allowCompoundWords": true,
"cSpell.userWords": [
"ARGB",
"cupertino",
"eruda",
"flavorizr",
"gitee",
"jawa",
"LTRB",
"Pinia",
"pnpm",
"scrcpy",
"unfocus",
"vant",
"vite",
"vsync",
"wangjia",
"writeln"
],
"[dart]": {
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.rulers": [
120
],
"editor.selectionHighlight": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.suggestSelection": "first",
"editor.tabCompletion": "onlySnippets",
"editor.wordBasedSuggestions": "off"
},
"dart.flutterCreatePlatforms": [
"android",
"ios",
],
"versionlens.pub.apiUrl": "https://pub-web.flutter-io.cn/api/packages",
"liveServer.settings.useLocalIp": true,
"GitCommitPlugin.ShowEmoji": false,
"commentTranslate.targetLanguage": "zh-CN",
"dart.runPubGetOnPubspecChanges": "never",
"dart.flutterSdkPaths": [
"C:\\Users\\admin\\sdk\\flutter3_27_4",
"C:\\Users\\admin\\sdk\\flutter3_22_3",
"C:\\Users\\admin\\sdk\\flutter3_10_6",
"C:\\Users\\admin\\sdk\\flutter3_7_12",
],
}