Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.62 KB

VS Code扩展环境记录.md

File metadata and controls

53 lines (40 loc) · 1.62 KB

扩展

环境配置

  • git.path

    git的安装路径,有默认路径,该扩展是系统的拓展,可以自定义git安装路径

    control+,进入配置修改页,输入git.path,将下方配置写入配置文件中:

    {
        "git.path":"D:\\Program Files\\Git\\bin\\git.exe"
    }

    重启vscode,源代码插件即可正常操作

  • eslint 保存自动格式化

    安装 ESLint 和 Vetur 插件,在配置文件中写入下方配置,保存即可

    {
        "eslint.autoFixOnSave": true,
        "eslint.options": {
            "extensions": [
                ".js",
                ".vue"
            ]
        },
        "eslint.validate": [
            "javascript",
            {
                "language": "vue",
                "autoFix": true
            },
            "html",
            "vue"
        ]
    }