.exe) using MinGW and simulate it seamlessly via Wine directly from the menu.For the extension to work properly across all its features (including Cross-Compilation), you must install the core compilers (GCC/G++, TCC) and Windows emulators (Wine/MinGW).
Install MSYS2 and use pacman to get the GCC toolchain.
pacman -S mingw-w64-ucrt-x86_64-gcc make
Use Homebrew to install the required compilers and Wine for cross-platform simulation.
brew install gcc tcc mingw-w64 wine
Choose your Linux distribution below to install the required tools (gcc, tcc, mingw-w64, and wine).
sudo pacman -S --needed gcc tcc mingw-w64-gcc wine
sudo apt update && sudo apt install -y gcc g++ tcc gcc-mingw-w64 g++-mingw-w64 wine
sudo dnf install -y gcc gcc-c++ tcc mingw64-gcc mingw64-gcc-c++ wine
sudo xbps-install -S gcc tcc cross-x86_64-w64-mingw32-gcc wine
sudo emerge --ask sys-devel/gcc dev-lang/tcc dev-util/mingw64-toolchain app-emulation/wine-vanilla
sudo eopkg install gcc tcc mingw-w64 wine
sudo zypper install -y gcc gcc-c++ tcc mingw64-gcc mingw64-gcc-c++ wine
sudo apk add --no-cache gcc g++ tcc mingw-w64-gcc wine
pkg install gcc tcc mingw-w64-gcc wine
Type the prefix in a .c or .cpp file and hit Tab for instant boilerplate code!
| Prefix | Description |
|---|---|
hello_world_c |
Generates a standard C Hello World. |
hello_world_c++ |
Generates a standard C++ Hello World. |
fstream_c++_windows |
C++ file handling template with Windows paths (C:\\...). Great for Wine testing! |
fstream_c++_unix |
C++ file handling template with Unix paths (/tmp/...). |
.c or .cpp file in VS Code.Run C or Run C++.Ctrl + Alt + C to open the RunX Build Menu. From here, you can natively compile, generate Assembly, or cross-compile to Windows.C/C++ RunX: Settings to: