Simple extension for one-click build of active C/C++ files
Note: Not intended for public use as this extension doesn't meet the standards. But it works and anyone can use.
Builds your active C/C++ file with one click.
It creates and out
dir in your workspace where the compiled programs are stored and run.
You can link libraries in compile command, just add this line in your code:
// libs:pthread libname1 libname2 libnameN
- Linux: nothing needed
- Windows: mingw should be installed OR use wsl (vscode should also be open in wsl)
- Fixed executing build command in WSL
- Channel output print whether build was success
Click to expand previous notes
Compiled program will now be executed in separate terminal by name C/C++ Build
.
So that it doesn't interfere with ongoing processe(s).
- Fixed editor focus bugs
- Added a command to clean (delete) all the built executable files.
Improved execution on different terminals.
Automatically save the current editor file when running command.
Link math library when included math.h
Added feature to link libraries in compile command.
How ?
Add this line in your code:
// libs:libname1 libname2 libnameN
Added fix for accessing paths in windows when partition is different
Added command to generate .clang-format
for formatting C/C++ code
Added feature to handle headers in cpp
files
Added a button to debug active file.
Required extension: ms-vscode.cpptools
Added a button to show terminal
- Improve terminal and platform recognition
- Provide option to select terminal to run on when more than one terminal are open
- Remove the statusbar item
- Add "Run" button at the end of tabs instead
Create a build statusbar item after first build
Create an output channel to show errors clearly
Initial release of Builder
Enjoy!