harry-cpp/CppConfigGenerator
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Quick hacky scripts I use to generate cpp config files for vs code from .sln and .vcxproj files
Bellow are cheatsheet config stuff for myself.
tasks.json setup:
```json
{
"label": "Build (WINDOWS)(DEBUG)",
"type": "process",
"command": "cmd.exe",
"args": [
"/d",
"/c",
"C:\\Program Files\\Microsoft Visual Studio\\2022\\Professional\\Common7\\Tools\\VsDevCmd.bat",
"&",
"msbuild",
"/path/to/solution.sln",
"/p:configuration=Debug;platform=x64"
],
"problemMatcher": [
"$msCompile"
],
"hide": true
}
```
launch.json setup:
```json
{
"name": "Editor (DEBUG)",
"type": "cppvsdbg",
"request": "launch",
"program": "/path/to/executable.exe",
"args": [
"-editor"
],
"cwd": "${workspaceRoot}/path/to/executabledir",
"visualizerFile": "${workspaceRoot}/path/to/visualizerFile.natvis",
"preLaunchTask": "Build (WINDOWS)(DEBUG)",
"console": "integratedTerminal"
}
```
compile_flags.txt:
```
-std=c++17
--language=c++
-I<Include>
-D<Symbol>
```
.clangd:
```
Completion:
CodePatterns: Never
ArgumentLists: None
HeaderInsertion: Never
Diagnostics:
UnusedIncludes: None
```