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.

Table of Contents
Sublime Text


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 syntax.

Column Select plug-in provides an alternate behavior for Sublime keyboard column selection. The 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.

DocBlockr_Python makes writing documentation a breeze for python code. 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

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.

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.

Search in Project lets you use your favorite search tool (grep, ack, ag, pt, rg, git grep, or findstr) to find strings across your entire current Sublime Text project. I personally use the silver_seracher (ag) for this purpose.

SublimeLinter and SublimeLinter-flake8 is plug-in that provides an interface to flake8. It will be used with files that have the Python syntax.

Shortcut Keys

Here is a summary of my key map:

    { "keys": ["shift+alt+a"], "command": "find_all_under" },
    { "keys": ["control+v"], "command": "paste_and_indent" },
    { "keys": ["control+shift+v"], "command": "paste" },
    { "keys": ["ctrl+alt+;"], "command": "alignment" },
    { "keys": ["ctrl+alt+up"], "command": "column_select", "args": {"by": "lines", "forward": false}},
    { "keys": ["ctrl+alt+down"], "command": "column_select", "args": {"by": "lines", "forward": true}},
    { "keys": ["ctrl+alt+pageup"], "command": "column_select", "args": {"by": "pages", "forward": false}},
    { "keys": ["ctrl+alt+pagedown"], "command": "column_select", "args": {"by": "pages", "forward": true}},
    { "keys": ["ctrl+alt+home"], "command": "column_select", "args": {"by": "all", "forward": false}},
    { "keys": ["ctrl+alt+end"], "command": "column_select", "args": {"by": "all", "forward": true}}

Theme and Color Scheme

I like using the material theme. In particular, I use the “Materialize” theme. You can use this by installing the following packages:

With these installation, you will also get a lot of color schemes. I prefer to use the Material Oceanic Next color scheme. All other settings for this theme can be seen 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.

    "always_show_minimap_viewport": true,
    "auto_complete": true,
    "bold_folder_labels": true,
    "caret_extra_width": 1.5,
    "color_scheme": "Packages/Materialize/schemes/Material Oceanic Next.tmTheme",
    "default_line_ending": "unix",
    "drag_text": false,
    "draw_white_space": "all",
    "enable_tab_scrolling": false,
    "font_face": "Hack",
    "font_size": 13,
    "hot_exit": false,
    "line_padding_bottom": 1,
    "line_padding_top": 1,
    "material_theme_bold_tab": true,
    "material_theme_compact_panel": true,
    "material_theme_compact_sidebar": false,
    "material_theme_contrast_mode": true,
    "material_theme_disable_fileicons": false,
    "material_theme_disable_folder_animation": true,
    "material_theme_disable_tree_indicator": true,
    "material_theme_panel_separator": true,
    "material_theme_small_statusbar": true,
    "material_theme_small_tab": true,
    "material_theme_tabs_autowidth": true,
    "material_theme_tabs_separator": true,
    "material_theme_tree_headings": true,
    "overlay_scroll_bars": "enabled",
    "remember_open_files": false,
    "scroll_past_end": true,
    "soda_classic_tabs": true,
    "soda_folder_icons": true,
    "tab_completion": false,
    "tab_size": 4,
    "theme": "Material Oceanic Next.sublime-theme",
    "translate_tabs_to_spaces": true,
    "trim_trailing_white_space_on_save": true,
    "word_wrap": true

comments powered by Disqus