|
|
|
1. Visual Studio code – instalacja podstawowa
|
|
|
|
2. cpp support: https://code.visualstudio.com/docs/languages/cpp
|
|
|
|
- C/C++ IntelliSense, debugging, and code browsing
|
|
|
|
- Using GCC with MinGW https://code.visualstudio.com/docs/cpp/config-mingw
|
|
|
|
- .vscode folder in the workspace
|
|
|
|
3. run_VScode.bat ([run_VScode.bat](uploads/e2c8f797454db50f5252b4d7846a450d/run_VScode.bat))
|
|
|
|
- konfiguracja ścieżek do MinGW i Msys
|
|
|
|
- uruchomienie VS Code
|
|
|
|
4. Open folder: d:\Eclipse_Mars\git_folder\DSPElib\DSPE_lib\src\
|
|
|
|
5. c_cpp_properties.json – konfiguracja ścieżek
|
|
|
|
- "compilerPath": "d:/CodeBlocks_20_03/MinGW/bin/gcc",
|
|
|
|
- https://code.visualstudio.com/docs/cpp/c-cpp-properties-schema-reference
|
|
|
|
- The status bar in VS Code will show you which configuration is active. You can also click on the label in the status bar to change the active configuration.
|
|
|
|
- najpierw trzeba w status bar ustawić C++
|
|
|
|
6. Edycja tasks.json
|
|
|
|
- choose Terminal > Configure Default Build Task
|
|
|
|
7. Kompilacja: np. Terminal -> run task
|
|
|
|
8. Debuging
|
|
|
|
- launch.json
|
|
|
|
- https://code.visualstudio.com/docs/cpp/config-mingw
|
|
|
|
|