Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save xgqfrms-GitHub/e0a1221c5fad307cb8cf7301e8f746f3 to your computer and use it in GitHub Desktop.
Save xgqfrms-GitHub/e0a1221c5fad307cb8cf7301e8f746f3 to your computer and use it in GitHub Desktop.
VS code setting.json & React JS

VS code setting.json

将设置放入此文件中以覆盖默认设置

https://code.visualstudio.com/docs/languages/overview

https://code.visualstudio.com/docs/languages/javascript

https://code.visualstudio.com/docs/getstarted/settings

React JS

VS code setting.json

{
    "files.exclude": {
        "**/.git": true,
        "**/.DS_Store": true,
        "jspm_packages": true,
        "node_modules": true
    },
    "search.exclude": {
        "**/node_modules": true,
        "**/bower_components": true
    },
    "files.watcherExclude": {
        "**/.git/objects/**": true,
        "**/.git/subtree-cache/**": true,
        "**/node_modules/*/**": true
    },
    "editor.formatOnSave": false,
    "editor.renderWhitespace": "all",
    "editor.fontSize": 14,
    "editor.tabSize": 4,
    "editor.multiCursorModifier": "alt",
    "editor.wordWrap": "on",
    "editor.insertSpaces": true,
    "files.encoding": "utf8",
    "terminal.integrated.shell.windows": "C:\\Windows\\Sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
    "[typescript]": {
        "editor.formatOnSave": true,
        "editor.formatOnPaste": true
    },
    "[markdown]": {
        "editor.formatOnSave": true,
        "editor.renderWhitespace": "all",
        "editor.acceptSuggestionOnEnter": "off"
    },
    "files.associations": {
        "*.jsx": "JavaScript React",
        "*.js": "javascriptreact"
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment