visual studio分享

1、visual studio常用插件

Art Template Helper

Auto Close Tag

Auto Rename Tag

Beautify

Chinese Language Pack for Vs

Document This

filesize

GitLens

Html Format

minapp

open in browser

Path Autocomplete

Path Intellisense

Vetur

vscode wxml

vscode-element-Helper

vscode-icons

vue vscode snippets

vue-Beautify

vueHelper


2、统一setting.json配置

{

    "git.ignoreMissingGitWarning": true,

    "terminal.external.windowsExec": " D:\\Program Files\\Git\\bin\\bash.exe",

    "terminal.integrated.shell.windows": "D:\\Program Files\\Git\\bin\\bash.exe",

    "window.zoomLevel": 1,

    "vetur.validation.template": false,

    "workbench.iconTheme": "vscode-icons",

    "terminal.integrated.rendererType": "dom",

    "explorer.confirmDelete": false,

    "editor.accessibilitySupport": "off",

    "vsicons.dontShowNewVersionMessage": true,

    "files.associations": {

        "*.cjson": "jsonc",

        "*.wxss": "css",

        "*.wxs": "javascript",

        "*.html": "html"

    },

    "emmet.includeLanguages": {

        "wxml": "html"

    },

    "minapp-vscode.disableAutoConfig": true,

    "colorize.ignore_search_variables_info": true,

    "[javascript]": {

        "editor.defaultFormatter": "chenxsan.vscode-standard-format"

    },

    "[html]": {

        "editor.defaultFormatter": "mohd-akram.vscode-html-format"

    },

    "editor.quickSuggestions": {

        "strings": true

    },

    "[css]": {

        "editor.defaultFormatter": "aeschli.vscode-css-formatter"

    },

    "[less]": {

        "editor.defaultFormatter": "HookyQR.beautify"

    },

    "[scss]": {

        "editor.defaultFormatter": "HookyQR.beautify"

    },

    "editor.minimap.renderCharacters": false,

    "editor.wordWrap": "on",

    "git.alwaysShowStagedChangesResourceGroup": true,

    "javascript.implicitProjectConfig.experimentalDecorators": true,

    "javascript.validate.enable": false,

    "workbench.statusBar.visible": false,

    "workbench.activityBar.visible": true,

    "search.followSymlinks": false,

    "editor.tabSize": 2,

    "editor.formatOnSave": false,

    "eslint.options": {

        "extensions": [

            ".js",

            ".vue"

        ]

    },

    "eslint.validate": [

        "javascript", //  用eslint的规则检测js文件

        "javascriptreact",

        {

            "language": "vue", // 检测vue文件

            "autoFix": true //  为vue文件开启保存自动修复的功能

        },

        {

            "language": "html",

            "autoFix": true

        },

        {

            "language": "javascript",

            "autoFix": true

        },

        {

            "language": "typescript",

            "autoFix": true

        }

    ],

    "prettier.singleQuote": true,

    "javascript.format.insertSpaceBeforeFunctionParenthesis": true,

    "vetur.format.defaultFormatter.html": "js-beautify-html",

    "vetur.format.defaultFormatter.js": "vscode-typescript",

    "vetur.format.defaultFormatterOptions": {

        "js-beautify-html": {

            "wrap_attributes": "force-aligned"

        },

        "prettyhtml": {

            "printWidth": 100,

            "singleQuote": false,

            "wrapAttributes": false,

            "sortAttributes": false

        }

    },

    "editor.snippetSuggestions": "top",

    "git.confirmSync": false,

    "window.title": "${dirty}${activeEditorMedium}${separator}${rootName}",

    "prettier.semi": false,

    "javascript.format.semicolons": "remove",

    "typescript.format.semicolons": "remove",

    "eslint.autoFixOnSave": true,

    "prettier.jsxSingleQuote": true,

    "[typescript]": {

        "editor.defaultFormatter": "esbenp.prettier-vscode"

    },

    "[json]": {

        "editor.defaultFormatter": "HookyQR.beautify"

    },

    "stock-watch.fallColor": "white",

    "stock-watch.stocks": [

        "603799"

      ],

    "stock-watch.updateInterval": 1000,

    "[vue]": {

        "editor.defaultFormatter": "esbenp.prettier-vscode"

    },


}

你可能感兴趣的:(visual studio分享)