Skip to content

This setup will make your CP faster, no need to input data manually to the prompt again and again, code input and output will be in a single window.

Notifications You must be signed in to change notification settings

vividblueprint/Competitive-Programming-Sublime-Setup

Repository files navigation

Competitive-Programming-Sublime-Setup

This setup will make your CP faster, no need to input data manually to the prompt again and again, code input and output will be in a single window.

Get dynamically generated GitHub stats!

Tests Passing GitHub Contributors Issues GitHub pull requests
Lines of code GitHub language count GitHub top language GitHub code size in bytes GitHub repo size GitHub repo file count

Table of Contents

  1. Install MSYS2
  2. Install the G++ and G++ Compilers
  3. Install the Debugger
  4. Add the Directory to the Path of the Environment Variables
  5. Check the Install

Install MSYS2

At first download the executable file from MSYS2. Go to the official website of MSYS2: https://www.msys2.org/ Scroll-down a little bit until you find the download button for the executable file.

  1. Download and install the exeicutable.

  2. Wait untill installation is completed.

  3. Open MSYS2 MSYS terminal

  4. Apply the command below to update the package database and the base packages:

     pacman -Syu
    
  5. Reopen the MSYS2 MSYS terminal and apply the command below

     pacman -Su
     pacman -Sy
    

Install the G++ and G++ Compilers

If you are using a 64 bit operating system then open MSYS2 MinGW x64 terminal and execute the command below:

    pacman -S mingw-w64-x86_64-gcc 

⚠️ if you are using a 32 bit operatiog system then open MSYS2 MinGW x86 terminal and execute the command below:

    pacman -S mingw-w64-i686-gcc

Install the Debugger

If you are using a 64 bit operating system then execute the command below on MSYS2 MinGW x64 terminal :

    pacman -S mingw-w64-x86_64-gdb

⚠️ If you are using a 32 bit operating system then execute the command below on MSYS2 MinGW x86 terminal :

    pacman -S mingw-w64-i686-gdb

Add the Directory to the Path of the Environment Variables

Click on windows button and search Environment Variables then open it.

  1. If you are using a 64 bit operating system, then go to mingw64 > bin folder from C:\ directory and copy the path or copy the path from below:

     C:\msys64\mingw64\bin
    

    ⚠️ If you are using a 32 bit operating system, then go to mingw32 > bin folder from C:\ directory and copy the path or copy the path from below:

     C:\msys64\mingw32\bin
    
  2. Click on Path, click Edit, add a new path and Paste coppied directory here. Click OK.

Check the Install

Open the terminal / PowerShell / CMD and apply the commands serially:

  1. check for the GCC version:

     gcc --version
    
  2. check for the G++ version:

     g++ --version
    
  3. check for the GDB version:

     gdb --version
    

At last, install sublime text editor and copy these build files to the sublime text editor's tool option directory. Select a build file from the tool option and enjoy your CP.

About

This setup will make your CP faster, no need to input data manually to the prompt again and again, code input and output will be in a single window.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published