Skip to content
/ sublime Public

Freyam's Sublime Text Setup!

Notifications You must be signed in to change notification settings

freyam/sublime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Sublime Text 4 Setup

Prerequisites

Windows

Linux

  • GNU C++ Compiler + Debugger
    • sudo apt-get install build-essential
  • Sublime Text 3 Stable
    • sudo snap install sublime-text
  • Sublime Text 4 Alpha 4099
    • wget https://download.sublimetext.com/sublime-text_build-4099_amd64.deb
    • dpkg -i sublime-text_build-4099_amd64.deb

Packages

To install Packages (Extensions) in Sublime, you need to install the Package Control to access the package repository. This can be quickly done via the Command Palette (CTRL + SHIFT + P). Search for "Install Package Control" and select it to start installing.

This gives you easy access to 1000s of excellent packages hosted on https://packagecontrol.io/. You can easily download this directly using the Command Pallete (CTRL + SHIFT + P) and searching for "Install Package". Now, just search for any packages' name, and it will start downloading.

I use the following packages:

Usage

I have 3 groups set up at all times (G1 - Source Code, G2 - Input & G3 - Output). My Sublime Build File (C++ Bolt.sublime-build) reads the STDIN from input.txt and redirects the STDOUT to output.txt. This is very convenient for problems available on Codeforces, AtCoder, CodeChef, etc., as you no longer need to use the terminal. It all happens in front of you.

Flow: input.txt > code.cpp > output.txt!

You can find all the files in this repository. Feel free to modify them according to your needs.

Utility Scripts

I have also included three shell scripts - precompile, contest & playgrounds, which will elevate your sublime experience.

  1. precompile{.bat/.sh} precompiles the standard library <bits/stdc++.h>. So, it approximately reduces the compilation time by a factor of 5.

  2. contest{.bat/.sh} is useful during contests. It duplicates the code from the template.cpp into several contest_x.cpp files, which can be used parallelly in the contest. After the contest, rerun it to delete all the contest_x.cpp and contest_x.exe.

  3. playgrounds{.bat/.sh} is practical when you quickly need backup source code files to play around with your code or debug them. Works the same way as contest but names the file playground_x instead.

Interface

My Interface

  • Theme : Adaptive
  • Color Scheme : Scotchy (from 10% Too Dull for My Tastes)
  • Icon Pack : FileIcons
  • Font : Consolas

Keep tinkering around with Sublime. It's amusing to play around with it.