| { |
| |
| "path-autocomplete.extensionOnImport": true, |
| |
| "path-autocomplete.pathMappings": { |
| "@": "${folder}/src" |
| }, |
| "liveServer.settings.CustomBrowser": "microsoft-edge", |
| "files.associations": { |
| "*.vue": "vue" |
| }, |
| "liveServer.settings.donotShowInfoMsg": true, |
| "liveServer.settings.donotVerifyTags": true, |
| "background.style": { |
| "content": "''", |
| "pointer-events": "none", |
| "position": "absolute", |
| "z-index": "99999", |
| "width": "100%", |
| "height": "100%", |
| "background-position": "100% 100%", |
| "background-repeat": "no-repeat", |
| "opacity": 1 |
| }, |
| "background.enabled": false, |
| "editor.wordWrap": "on", |
| "git.autofetch": true, |
| "liveServer.settings.AdvanceCustomBrowserCmdLine": "", |
| "previewServer.port": 80, |
| "liveServer.settings.ChromeDebuggingAttachment": false, |
| "liveServer.settings.mount": [], |
| "cssrem.rootFontSize": 80, |
| "javascript.updateImportsOnFileMove.enabled": "always", |
| "editor.suggest.snippetsPreventQuickSuggestions": false, |
| "liveServer.settings.ignoreFiles": [ |
| ".vscode/**", |
| "**/*.scss", |
| "**/*.sass", |
| "**/*.ts" |
| ], |
| "liveServer.settings.port": 80, |
| |
| "editor.minimap.showSlider": "always", |
| "github.copilot.advanced": {}, |
| "fiveServer.port": 80, |
| "fiveServer.browser": [], |
| "editor.unicodeHighlight.invisibleCharacters": false, |
| "editor.unicodeHighlight.allowedCharacters": { |
| " ": true |
| }, |
| "editor.accessibilitySupport": "off", |
| "workbench.colorTheme": "Default Light+", |
| "path-autocomplete.excludedItems": {}, |
| "path-autocomplete.ignoredPrefixes": [], |
| "[vue]": { |
| "editor.defaultFormatter": "esbenp.prettier-vscode" |
| }, |
| "editor.formatOnSave": true, |
| "[html]": { |
| "editor.defaultFormatter": "esbenp.prettier-vscode" |
| }, |
| "tabnine.experimentalAutoImports": true, |
| "workbench.editor.enablePreview": false, |
| "editor.minimap.enabled": false, |
| "editor.formatOnPaste": true, |
| "chatgpt.gpt3.apiKey": "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", |
| "[javascript]": { |
| "editor.defaultFormatter": "esbenp.prettier-vscode" |
| }, |
| "prettier.singleAttributePerLine": true, |
| "editor.inlineSuggest.enabled": false, |
| "emmet.triggerExpansionOnTab": true, |
| "editor.bracketPairColorization.independentColorPoolPerBracketType": true, |
| "[javascriptreact]": { |
| "editor.defaultFormatter": "esbenp.prettier-vscode" |
| }, |
| "code-runner.executorMap": { |
| "javascript": "node", |
| "java": "cd $dir && javac $fileName && java $fileNameWithoutExt", |
| "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", |
| "zig": "zig run", |
| "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", |
| "objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", |
| "php": "php", |
| "python": "python -u", |
| "perl": "perl", |
| "perl6": "perl6", |
| "ruby": "ruby", |
| "go": "go run", |
| "lua": "lua", |
| "groovy": "groovy", |
| "powershell": "powershell -ExecutionPolicy ByPass -File", |
| "bat": "cmd /c", |
| "shellscript": "bash", |
| "fsharp": "fsi", |
| "csharp": "scriptcs", |
| "vbscript": "cscript //Nologo", |
| "typescript": "npx ts-node", |
| "coffeescript": "coffee", |
| "scala": "scala", |
| "swift": "swift", |
| "julia": "julia", |
| "crystal": "crystal", |
| "ocaml": "ocaml", |
| "r": "Rscript", |
| "applescript": "osascript", |
| "clojure": "lein exec", |
| "haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt", |
| "rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt", |
| "racket": "racket", |
| "scheme": "csi -script", |
| "ahk": "autohotkey", |
| "autoit": "autoit3", |
| "dart": "dart", |
| "pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt", |
| "d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt", |
| "haskell": "runghc", |
| "nim": "nim compile --verbosity:0 --hints:off --run", |
| "lisp": "sbcl --script", |
| "kit": "kitc --run", |
| "v": "v run", |
| "sass": "sass --style expanded", |
| "scss": "scss --style expanded", |
| "less": "cd $dir && lessc $fileName $fileNameWithoutExt.css", |
| "FortranFreeForm": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", |
| "fortran-modern": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", |
| "fortran_fixed-form": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", |
| "fortran": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt", |
| "sml": "cd $dir && sml $fileName" |
| }, |
| "code-runner.runInTerminal": true, |
| "npm.packageManager": "npm", |
| "powermode.shake.intensity": 0, |
| "powermode.enabled": true, |
| "powermode.combo.counterEnabled": "hide", |
| "powermode.combo.timerEnabled": "hide", |
| "files.autoSave": "afterDelay" |
| } |
复制
目前用的是这一套
vscode需要安装一个插件
- 安装vsCode prettier插件
- 修改配置文件 setting.json
| { |
| "git.enableSmartCommit": true, |
| |
| "editor.tokenColorCustomizations": { |
| "comments": { |
| "fontStyle": "bold", |
| "foreground": "#82e0aa" |
| } |
| }, |
| |
| "files.associations": { |
| "*.js": "javascript", |
| "*.json": "jsonc", |
| "*.cjson": "jsonc", |
| "*.wxss": "css", |
| "*.wxs": "javascript" |
| }, |
| "extensions.ignoreRecommendations": false, |
| "files.exclude": { |
| "**/.DS_Store": true, |
| "**/.git": true, |
| "**/.hg": true, |
| "**/.svn": true, |
| "**/CVS": true, |
| "**/node_modules": false, |
| "**/tmp": true |
| }, |
| |
| "explorer.confirmDragAndDrop": false, |
| "typescript.updateImportsOnFileMove.enabled": "prompt", |
| "git.confirmSync": false, |
| "editor.tabSize": 2, |
| "editor.fontWeight": "500", |
| "[json]": {}, |
| "editor.tabCompletion": "on", |
| "vsicons.projectDetection.autoReload": true, |
| "editor.fontFamily": "Monaco, 'Courier New', monospace, Meslo LG M for Powerline", |
| "[html]": { |
| "editor.defaultFormatter": "vscode.html-language-features" |
| }, |
| "editor.fontSize": 16, |
| "debug.console.fontSize": 14, |
| "vsicons.dontShowNewVersionMessage": true, |
| "editor.minimap.enabled": true, |
| "emmet.extensionsPath": [ |
| "" |
| ], |
| |
| "editor.formatOnSave": true, |
| |
| "editor.codeActionsOnSave": { |
| "source.fixAll": true |
| }, |
| "vetur.ignoreProjectWarning": true, |
| |
| |
| "vetur.format.defaultFormatter.js": "vscode-typescript", |
| "javascript.format.semicolons": "remove", |
| |
| "[vue]": { |
| "editor.defaultFormatter": "octref.vetur" |
| }, |
| |
| "[javascript]": { |
| "editor.defaultFormatter": "vscode.typescript-language-features" |
| }, |
| |
| "editor.defaultFormatter": "esbenp.prettier-vscode", |
| "prettier.jsxBracketSameLine": true, |
| |
| "javascript.format.insertSpaceBeforeFunctionParenthesis": true, |
| "prettier.singleQuote": true, |
| "prettier.semi": false, |
| |
| |
| |
| "emmet.triggerExpansionOnTab": true, |
| "emmet.showAbbreviationSuggestions": true, |
| "emmet.includeLanguages": { |
| |
| "javascript": "javascriptreact", |
| "vue-html": "html", |
| "vue": "html", |
| "wxml": "html" |
| }, |
| |
| "[jsonc]": { |
| "editor.defaultFormatter": "vscode.json-language-features" |
| }, |
| |
| "path-intellisense.mappings": { |
| "@": "${workspaceRoot}/src" |
| }, |
| "security.workspace.trust.untrustedFiles": "open", |
| "git.ignoreMissingGitWarning": true, |
| "window.zoomLevel": 1 |
| } |
复制