A Competitive Programming setup using VSCode for C++ users in Ubuntu with Debugging support.
- VSCode ready to use out of the box .
- Run
./templete.sh
in Ubuntu to reset theScratch
Folder. - All
.cpp
files automatically take input frominput.txt
and output tooutput.txt
in the same folder.
- Follow Steps 1-2 from Official VSCode Linux Prerequisites
- Make sure g++ is installed
- Install
sudo apt-get update sudo apt-get install build-essential
- Check Installation
g++ --version gdb --version
- Install
You are good to go!
-
Download this repository.
git clone https://github.com/nxtsourav7Happy-Coding.git
-
Open VSCode in
Happy-Coding
Folder.cd Happy-Coding code .
-
Open a Integrated Terminal by clicking on
Terminal -> New Terminal
or pressCtrl+ Shift + `
-
You can always create a
Scratch
Folder from terminal by-
Make the script executable (Only needed once)
chmod +x templete.sh
-
Execute the script
./templete.sh
Note: To reset the
Scratch
Folder at any time, you may run this command again. -
- You should write your code in the
Scratch
Folder. - Press
F5
or click Right top cornnerPlay
batton to run any.cpp
file. The file will automatically take input frominput.txt
and write output tooutput.txt
Happy Coding!