VSCode

一、常用设置

1、集成Cygwin中的zsh

{
    "terminal.integrated.profiles.windows": {
        "Cygwin-zsh": {
            "path": [
                "C:\\Softwares\\cygwin\\bin\\zsh.exe"
            ],
            "args": [],
            "icon": "terminal-bash"
        }
    },
    "terminal.integrated.defaultProfile.windows":"Cygwin-zsh",
}

2、集成终端下复制粘贴设置

{
    "terminal.integrated.copyOnSelection": true,
    "terminal.integrated.rightClickBehavior": "paste",
}

3、Remote SSH插件指定ssh config路径

{
    "remote.SSH.configFile": "C:\\Softwares\\cygwin\\home\\Maker\\.ssh\\config",
}

4、关闭发生遥测数据

{
    "redhat.telemetry.enabled": false,
    "telemetry.telemetryLevel": "off",
}

5、控制搜索结果是否显示行号

{
    "search.showLineNumbers": true,
}

6、文件自动保存

{
    "files.autoSave": "afterDelay",
}

7、资源管理器文件夹排列间隔宽度

{
    "workbench.tree.indent": 25,
}

二、配置运行Go、Nodejs、Python、Java等程序

.vscode/launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "vite dev",
            "type": "node-terminal",
            "request": "launch",
            "command": "npm run dev",
            "cwd": "${workspaceFolder}/web"
        },
        {
            "name": "vite build",
            "type": "node-terminal",
            "request": "launch",
            "command": "npm run build",
            "cwd": "${workspaceFolder}/web"
        },
        {
            "name": "run go",
            "type": "go",
            "request": "launch",
            "mode": "auto",
            "program": "${workspaceFolder}",
            "showLog": true,
        }
    ]
}
Copyright Curiouser all right reserved,powered by Gitbook该文件最后修改时间: 2024-02-23 09:52:37

results matching ""

    No results matching ""