3 minute read

Sublime Text Setup

I have been using Sublime text as my primary editor for some time now. Here I wanted to share my current setup for the editor including all settings, packages, shortcut keys and themes.


First thing you will need to install is the Package Control. This can be easily done by following the directions at their installation instructions.

Once you have installed the package manager and restarted sublime text, now you can install all other packages using the powerful command pallet. Hit ctrl + shift + P and type Install, choose Package Control : Install Package. Now you can search for any package that you wish to install, and then press Enter to install it.

Here is a list of packages that I currently use:

Alignment provides a simple key-binding for aligning multi-line and multiple selections.

Bracket Highlighter, as the name suggests, matches a variety of brackets such as: [], (), {}, "", '', <tag></tag>, and even custom brackets.

C++11 provides better coloring scheme and syntax highlighting for C++11 and beyond syntax.

Column Select plug-in provides an alternate behavior for Sublime keyboard column selection. The major differences are:

  • Allows reversing direction (go down too far, just go back up).
  • Added PageUp/PageDown, Home/End, and mouse selection.
  • Skip rows that are too short.
  • If you start at the end of a line, then it will stay at the end of each line.

AutoDocString makes writing documentation a breeze for python code. I typically use google docstring format, so I modify settings as follows:

GitGutter is a handy plug-in to show information about files in a git repository. Main Features are:

  • Gutter Icons indicating inserted, modified or deleted lines
  • Diff Popup with details about modified lines
  • Status Bar Text with information about file and repository
  • Jumping Between Changes to easily navigate between modified lines

My custom settings are:

Jedi is a plugin that turns your SublimeText 3 into a rich featured Python development stack that boost your productivity and helps you to ensure the quality and style of your code. The plugin works out of the box with no configuration but, I prefer to specify the python interpreter explicitly.

Please note that autocompletion doesn't work well for the import statements by default in sublime text 3. Please follow these instructions to make it work properly. You can download a copy of my completion file.

MagicPython is a package with preferences and syntax highlighter for cutting edge Python 3. It is meant to be a drop-in replacement for the default Python package. MagicPython correctly highlights all Python 3.5 and 3.6 syntax features, including type annotations, f-strings and regular expressions. It is built from scratch for robustness with an extensive test suite.

sublack is plugin to run black. Black is the uncompromising Python code formatter. Blackened code looks the same regardless of the project you're reading. Formatting becomes transparent after a while and you can focus on the content instead. I prefer to use a line width of 99. By default black likes to convert all strings to double quotes, while I prefer single quotes. Following configuration is needed for these modifications:

rsub is an implementation of TextMate 2's rmate feature for Sublime Text, allowing files to be edited on a remote server using ssh port forwarding / tunneling. Please make sure you have installed a version of rmate and are using correct port forwarding.

SidebarEnhancements Provides enhancements to the operations on Sidebar of Files and Folders for Sublime Text. The main features are:

  • Provides delete as "move to trash", open with.. and a clipboard.
  • Close, move, open and restore buffers affected by a rename/move command (even on folders).
  • Provides new file/folder, edit, open/run, reveal, find in selected/parent/project, cut, copy, paste, paste in parent, rename, move, delete, refresh etc.
  • Provides copy paths as URIs, URLs, content as UTF8, content as data:uri base64 ( nice for embedding into CSS! ), copy as tags img/a/script/style, duplicate etc.
  • Allows to display "file modified date" and "file size" on status bar.

FileIcons is a further enhancement to SidebarEnhancements plugin to provide fancy icons for different types of files and folders. Please follow instructions to make it work for your theme.

SublimeLinter and SublimeLinter-flake8 is plug-in that provides an interface to flake8. It will be used with files that have the Python syntax. SublimeLinter addon black for flake is tiny add-on package to make sublack fully compatible with flake linter.

Markdown Editing For writing markdown files, Agila theme provides alternative color schemes. We can take advantage of them by using the Markdown Editing package and modifying the user settings of MultiMarkdown.

Shortcut Keys

Here is a summary of my key map:

Theme and Color Scheme

I like a simple and clean UI for my editors. guna provides the perfect minimal theme that is adaptive to any color scheme you prefer. I prefer color schemes from the agila theme. The settings related to this can be found in my settings below.

User Settings / Preferences

Here is my complete set of settings for Sublime Text. Please feel free to leave comments below for any questions or suggestions.



Get in touch 👋

Feel free to email me about anything. Want some advice? Give some feedback?

You can also reach me around the web: GitHub, Twitter, LinkedIn