vscode使用笔记

Debug: attach到某个进程

安装插件:WebFreakNative Debug

.vscode/launch.json里:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Attach to PID",
            "type": "gdb",
            "request": "attach",
            "target": "要attach到的PID",
            "cwd": "${workspaceRoot}",
            "valuesFormatting": "parseText"
        }
    ]
}

只对特定语言开启保存时自动格式化

例如只对js开启保存时自动格式化:

"[javascript]": {
    "editor.formatOnSave": true
}

Language Identifiers: https://code.visualstudio.com/docs/languages/identifiers

补充:

Language Identifier 含义
cmake CMakeLists.txt
jsonc JSON with Comments
markdown Markdown

来源:https://stackoverflow.com/questions/44831313/how-to-exclude-file-extensions-and-languages-from-format-on-save-in-vscode

切换字体

默认的字体不行,1l都分不清。可以在Editor: Font Family里更改字体,推荐Hack

'Hack', 'monospace', monospace
posted @ 2024-09-28 14:12  寻找繁星  阅读(0)  评论(0编辑  收藏  举报