¶ Debug: attach到某个进程
安装插件:WebFreak
的Native 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 |
¶ 切换字体
默认的字体不行,1
和l
都分不清。可以在Editor: Font Family
里更改字体,推荐Hack
:
'Hack', 'monospace', monospace