How to Set-Up Sublime Text for Competitive Programming?

To setup sublime Text for Competitive Programming, download 7 install the following in your computer-

Sublime Text


After downloading MinGw Installer file (setup.exe) from their official website, run the setup file as administrator and open the Installer, check GCC compiler & install it.

  • To Add the GCC Compiler to path, perform the following steps-

  • Right Click on My computer & then click on properties

  • Then click on Advanced System settings

  • In the Advanced System Settings, under Advanced Tab, click on system variables

  • Inside System Variables, you'll get to see two options, User Variables & environment variables

  • Click on Environment Variables

  • Click on path under Environment Variables & edit it.

  • Copy the GCC location (inside Program Files of MinGw folder)

  • Add it to path

  • Don't forget to add a semi-colon (;) at the end of previous path.

Then open Sublime text, click on Project > Tools >Build a New System, erase the pre-written code & replace it with the below written code-

"cmd": ["g++.exe","-std=c++14", "${file}", "-o", "${file_base_name}.exe", "&&" , "${file_base_name}.exe<>"], 

Save the file as competitiveProgramming (don't change the extension).

Then, Open Views > Layout > Columns:3 ; then Views>Groups>Max Column:2.

Now, select Build system>competitive Programming (this is the system you have just now created).

For detailed, step-by-step video, please watch the video tutorial-

Thanks for watching! Have a nice day.

40 views0 comments

Recent Posts

See All


  • Facebook Basic Black
  • Twitter Basic Black
  • Black Instagram Icon