Skip to main content

Visual Studio Code 配置

{
// VSCode Settings
"breadcrumbs.enabled": true,
"cSpell.userWords": [
"clsx",
"commentid",
"Covid",
"gtag",
"harisfox",
"Harrly",
"hode",
"katex",
"matplotlib",
"naptan",
"Netease",
"okis",
"okisdev",
"Pressable",
"Pricetags",
"prismjs",
"pyplot",
"reduxjs",
"scipy",
"tailwindcss",
"Unmount",
"useanimations",
"Vercel",
"vuepress",
"Wakatime",
"webp"
],
"editor.bracketPairColorization.enabled": true,
"editor.guides.bracketPairs": "active",
"editor.suggestSelection": "first",
"editor.tabSize": 2,
"editor.wordWrapColumn": 100,
"editor.formatOnType": true,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.fontFamily": "JetBrains Mono, 'Noto Serif SC', ' Noto Serif TC', 'MesloLGS NF', Menlo, Monaco, 'Courier New', monospace",
"editor.renderControlCharacters": true,
"editor.accessibilitySupport": "off",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.inlineSuggest.enabled": true,
"files.autoSave": "onFocusChange",
"files.associations": {
"*.json": "json",
"*.mdx": "markdown"
},
"html.format.wrapAttributes": "force-aligned",
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--skip-string-normalization"
],
// Others Settings
"workbench.iconTheme": "material-icon-theme",
"workbench.editorAssociations": {
"*.ipynb": "jupyter-notebook"
},
"notebook.cellToolbarLocation": {
"default": "right",
"jupyter-notebook": "left"
},
// Prettier Settings
"prettier.tabWidth": 4,
"prettier.printWidth": 200,
"prettier.semi": true,
"prettier.singleQuote": true,
"prettier.jsxSingleQuote": true,
"prettier.vueIndentScriptAndStyle": true,
"prettier.arrowParens": "always",
"prettier.trailingComma": "es5",
// GitHub Copilot Settings
"github.copilot.enable": {
"*": true,
"yaml": true,
"plaintext": true,
"markdown": true,
"c": true
},
"tailwindCSS.includeLanguages": {
"plaintext": "js"
},
"javascript.updateImportsOnFileMove.enabled": "always",
"typescript.updateImportsOnFileMove.enabled": "always",
"python.defaultInterpreterPath": "/usr/bin/python3",
"terminal.integrated.env.osx": {
"FIG_NEW_SESSION": "1"
},
"cSpell.language": "en,en-GB",
"editor.largeFileOptimizations": false,
"editor.linkedEditing": true,
"editor.unicodeHighlight.ambiguousCharacters": false,
"editor.foldingMaximumRegions": 50000,
"files.exclude": {
"**/.classpath": true,
"**/.project": true,
"**/.settings": true,
"**/.factorypath": true
},
"git.confirmSync": false,
"git.autofetch": true,
"markdown.preview.breaks": true,
"markdown.preview.fontFamily": "-apple-system, JetBrains Mono, 'Noto Serif SC', ' Noto Serif TC', 'MesloLGS NF', Menlo, Monaco, 'Courier New', monospace",
"leetcode.endpoint": "leetcode-cn",
"leetcode.defaultLanguage": "typescript",
"leetcode.workspaceFolder": "/******/leetcode",
"leetcode.hint.commandShortcut": false,
"leetcode.hint.commentDescription": false,
"leetcode.hint.configWebviewMarkdown": false,
"commentTranslate.multiLineMerge": true,
"commentTranslate.source": "Google",
"commentTranslate.targetLanguage": "zh-TW",
"[dotenv]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[ignore]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[properties]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[html]": {},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[python]": {
"editor.defaultFormatter": "ms-python.python",
"editor.formatOnType": true,
},
"[java]": {
"editor.defaultFormatter": "mwpb.java-prettier-formatter"
},
"[xml]": {
"editor.defaultFormatter": "fabianlauer.vs-code-xml-format"
},
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"workbench.colorCustomizations": {},
"workbench.colorTheme": "One Dark Pro",
"markdown-image.base.uploadMethod": "自定义",
"markdown-image.DIY.path": "/Users/Shared/GitHub/Profile/Apps/Visual Studio Code/hancel.markdown-image/DIY.PATH.js",
"markdown-image.base.fileNameFormat": "${mdname}.${prompt}",
"commentTranslate.ignore": [
{
"languageId": "javascript,typescript,javascriptreact,typescriptreact",
"regular": "[\\*\\s]+"
},
{
"languageId": "dart",
"regular": "[\\s|/]+"
}
],
"[latex]": {
"editor.defaultFormatter": "James-Yu.latex-workshop"
},
"diffEditor.wordWrap": "on"
}