VSCode 集成 cygwin

settings.json

{
    "window.enableMenuBarMnemonics": false,
    "liveServer.settings.donotVerifyTags": true,
    "liveServer.settings.donotShowInfoMsg": true,
    "debug.allowBreakpointsEverywhere": true,
    "editor.cursorStyle": "line",
    "editor.lineNumbers": "on",
    "editor.wordSeparators": "/\\()\"':,.;<>~!@#$%^&*|+=[]{}`?-",
    "editor.wordWrap": "off",
    "http.proxyStrictSSL": false,
    "workbench.colorTheme": "NarutoDark",
    "terminal.integrated.profiles.windows": {
        "cygwin": {
            "path": "C:\\cygwin64\\bin\\bash.exe",
            "env": {
                // "HOME": "${workspaceFolder}", // 错误:不支持win风格路径
                "CHERE_INVOKING": "1" // cygwin默认执行/etc/profile以检查环境变量CHERE_INVOKING,如果设置,则禁止更改目录到$HOME。
            },
            "icon": "terminal-bash",
            "args": [
                "--login",
            ]
        },
        "Command Prompt": {
            "path": [
                "${env:windir}\\Sysnative\\cmd.exe",
                "${env:windir}\\System32\\cmd.exe"
            ],
            "args": [],
            "icon": "terminal-cmd"
        },
        "Git Bash": {
            "source": "Git Bash"
        }
    },
    "terminal.integrated.defaultProfile.windows": "cygwin",
    "http.proxy": "http://127.0.0.1:25378",
    "http.proxySupport": "fallback",
    "cmake.configureOnOpen": true,
    "window.zoomLevel": 1
}
posted @ 2022-01-21 16:40  develon  阅读(277)  评论(0编辑  收藏  举报