Simple, Powerful VSCode C++ Setup for Windows and Ubuntu

Revision en1, by codeict, 2020-10-17 17:07:16

I was unable to find a simple yet powerful CP setup for my needs, so I decided to create one myself. I hope someone will find this useful.

This setup uses C++ in VSCode with debugging support for users in Windows and Ubuntu.

Features

  1. VSCode ready to use out of the box (Only windows users need to correct MinGW installation path).
  2. Run .\windows-reset.bat in Windows or ./ubuntu-reset.sh in Ubuntu to reset the Current Folder.
  3. All .cpp files automatically take input from input.txt and output to output.txt in the same folder. No need for complicated ifdefs.
  4. Leverage powerful features of VSCode:
    • Step Through Debugging (Execute the code line by line, Hover over variables to get values)
    • Debug Console (View any object i.e. map, set, vector or any complex object)
    • Zen Mode (Utilize your screen to the fullest)

Please feel free to post Issues/Suggestions at the Github Repository.

Github Repository

Installation video for Windows on Youtube

Installation video for Ubuntu on Youtube

VSCode setup Screenshot

Tags setup, #vscode, c++

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English codeict 2020-10-17 17:07:16 1320 Initial revision (published)