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; - Install the VSCode C/C++ Extension Pack;
- Configure
launch.json,settings.json, andtasks.jsonin the.vscodeworkspace (reference the .vscode directory).
💡 Using the CS50 Library: If you need to run legacy code that uses the CS50 library, simply copy the
cs50.handcs50.cfiles from the cs50 directory directly into your active project 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.
