vscode uses npm and git (memo)

1. Open the file/preferences/settings and
modify settings.json.

It has been configured before, you need to use npm to configure the terminal to point to terminal.integrated.shell.windows

{

    "eslint.autoFixOnSave": true,

    "eslint.validate": [

        {

            "language": "javascript",

            "autoFix": true

        },

        {

            "language": "javascriptreact",

            "autoFix": true

        },

        {

            "language": "html",

            "autoFix": true

        },

        {

            "language": "vue",

            "autoFix": true

        }

    ],

    "explorer.confirmDelete": false,

    "git.confirmSync": false,

    "diffEditor.ignoreTrimWhitespace": false,

    "git.autofetch": true,

    "emmet.triggerExpansionOnTab": true,

    "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",

    "window.zoomLevel": 0,

    "gitlens.gitCommands.closeOnFocusOut": true,

    "editor.codeActionsOnSave": {

        "source.fixAll.eslint": true

    },

    "search.followSymlinks": false

}

2. The 设置中搜索gitpath,default gitpath is C:\Program Files\Git\bin\git.exe,要修改在setting.json中配置"gitpath":xxx

如 D: \\ Git \\ bin \\ git.exe

3. Install the necessary plug-ins, take me as an example

4. Remember the git account password git config --global credential.helper store

Guess you like

Origin blog.csdn.net/weixin_39308542/article/details/107080921