My VSCode setup for C, Python and SQLite development, extending Harvard CS50's workflow.
⚙️ MinGW Setup for C
- Add
C:\mingw64\binto the PATH system environment variable; - Place header files (
.h) inC:\mingw64\include; - Place source files (
.c) or library files (.a,.lib) inC:\mingw64\lib; - Install the VSCode C/C++ Extension Pack;
- Configure
launch.json,settings.json, andtasks.jsonin the.vscodeworkspace (reference the .vscode folder).
🐍 Python Setup
- Install latest stable Python version and ensure it's added to the System PATH;
- Install the Python Extension for VSCode.
🗄️ SQLite Setup
- Install the SQLite VS Code extension by alexcvzz;
- SQLite comes bundled with Python — confirm it is working by running:
python -c "import sqlite3; print(sqlite3.sqlite_version)"Common issues and their solutions.
Visual Studio Code C/C++ debug error (System.Security.SecurityException: Falha na validação de nome forte)
- Problem: Unable to start debugging. Unable to establish a connection to GDB. Debug output may contain more information.
- Solution: In the VSCode extensions tab, click "Switch to release version" and restart VSCode.