Open In App

Competitive Coding Setup for C++ and Python in VS Code using Python Script

Most of us struggle with using heavy software to run C++ and python code and things become more complicated when we have too many files in a folder. In this blog, we are going to create a python script with VS-code-editor that works out to do all your works.

It creates the folder + numbers of files required by the user in that folder with proper extension and the best feature is you can easily run your c++ and python files with one single command. I am also providing the best user-snippets for c++ and python and how to add them to your VS-code-editor.



Requirement 

Note: You can search for tutorials on Google if you don’t know how to set a path in your system.

Step 1: Clone or download the git repository from the link:- https://github.com/AkhilRautela/Competitive-Coding-Helpful-Script-for-VScode-



CLONE OR DOWNLOAD IT

Step 2: After cloning or downloading it open the folder in your VS Code editor. Make sure there is no .vscode folder in the above directories. This will give you multiple build options.

All the files downloaded can be seen on the left side

Step 3: Once the file is downloaded, open the terminal and create a folder and files using the command Terminal→New Terminal. This will give you a new terminal at the bottom of the VSCode editor.

You can see the files created on the left side

SPLIT LEFT.

SPLIT DOWN THE LEFT PART.

 you can see the output occurs in output.txt

Step 4: The same can be done for C++. Write the code and press Ctrl+Shift+B.

Article Tags :