mirror of
https://github.com/zeldaret/tww.git
synced 2026-05-23 15:01:33 -04:00
67 lines
1.4 KiB
Markdown
67 lines
1.4 KiB
Markdown
Visual Studio Code
|
|
==================
|
|
|
|
Settings
|
|
--------
|
|
|
|
Recommended `.vscode/settings.json`:
|
|
|
|
```jsonc
|
|
{
|
|
"[c]": {
|
|
"files.encoding": "utf8",
|
|
"editor.defaultFormatter": "xaver.clang-format"
|
|
},
|
|
"[cpp]": {
|
|
"files.encoding": "utf8",
|
|
"editor.defaultFormatter": "xaver.clang-format"
|
|
},
|
|
"[python]": {
|
|
"editor.defaultFormatter": "ms-python.black-formatter"
|
|
},
|
|
"files.insertFinalNewline": true,
|
|
"files.trimFinalNewlines": true,
|
|
"files.associations": {
|
|
"*.inc": "cpp",
|
|
},
|
|
"search.useIgnoreFiles": false,
|
|
"search.exclude": {
|
|
"build/*/config.json": true,
|
|
"build/**/*.MAP": true,
|
|
"build.ninja": true,
|
|
".ninja_*": true,
|
|
"objdiff.json": true,
|
|
}
|
|
}
|
|
```
|
|
|
|
C/C++ configuration
|
|
-------------------
|
|
|
|
Recommended `.vscode/c_cpp_properties.json`:
|
|
|
|
```jsonc
|
|
{
|
|
"configurations": [
|
|
{
|
|
"name": "Linux",
|
|
"includePath": [
|
|
"${workspaceFolder}/include/**"
|
|
],
|
|
"cStandard": "c99",
|
|
"cppStandard": "c++98",
|
|
"intelliSenseMode": "linux-clang-x86",
|
|
"compilerPath": "",
|
|
"configurationProvider": "ms-vscode.makefile-tools",
|
|
"browse": {
|
|
"path": [
|
|
"${workspaceFolder}/include"
|
|
],
|
|
"limitSymbolsToIncludedHeaders": true
|
|
}
|
|
}
|
|
],
|
|
"version": 4
|
|
}
|
|
```
|