Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
The settings for my sublime text set-up
// Use paste and indent as default paste mechanism,
// this conserves your indentation and it's overall better.
// original paste is now ctrl+shift+v
"keys": ["ctrl+v"],
"command": "paste_and_indent"
}, {
"keys": ["ctrl+shift+v"],
"command": "paste"
// plugin settings for trailing punctuation,
// double tap ; to toggle a semicolon at the end of the line. Same goes for ,
{ "keys": [";", ";"], "command": "trailing_punctuation", "args": {"char": ";"} },
{ "keys": [",", ","], "command": "trailing_punctuation", "args": {"char": ","} },
"keys": ["ctrl+shift+x"],
"command": "format_autocomplete"
"keys": ["ctrl+alt+l"],
"command": "run_macro_file",
"args": {"file": "Packages/User/python-macros/break-line.sublime-macro"}
"keys": ["ctrl+shift+a"], "command": "alignment"
"keys": ["ctrl+shift+y"],
"command": "arithmetic"

This is my complete sublime text configuration. Set up for html, css, javascript and python on Linux. Each plugin has a link to either their github page or their website. All plugins but package control itself are available through package control. All of them work perfectly with Sublime Text 3.


  • Package control - This is the Sublime Text package manager, it is a must have for Sublime. It is also required to install any of the other plugins or themes mentioned below.
  • Bracket highlighter - Highlights brackets in your line numbers and inline. Very useful for nested html or js objects.
  • Emmet - The must have html and css plugin.
  • all autocomplete - Enhances your autocomplete with words from all your open files, very useful.
  • Trailing punctuation - Can toggle punctuation at the end of the line, I use this as an (in my opinion) superior alternative to auto semi colon. Check out the keybindings for my setup.
    { "command": "set_mark" },
    { "command": "move_to", "args": {"to": "eol"} },
    { "command": "insert_snippet", "args": {"contents": "${TM_LINE_TERMINATOR:;}"} },
    { "command": "swap_with_mark" }

I've assigned this macro to a double keypress of the ; key as follows in my user keymap file: *Note that your path filepath may differ, depending on what folder you saved the macro above to.

{ "keys": [";", ";"], "command": "run_macro_file", "args": {"file": "Packages/User/macros/insert-semicolon.sublime-macro"} },
  • docBlockr - Neat documentation comments, supports a large amount of programming languages
  • autoFileName - autocompletion for filenames, autocompletes filenames in html <link> or <script> tags amongst many others.
  • Git - Git in sublime, useful. (there are some alternative git plugins too)
  • GitGutter - Shows you what lines you have edited, removed, moved next to the line numbers. This is a must if you use Git a lot.
  • Sublime linter - Linting, (code quality checkers) for many languages
  • Sublime CodeIntel - Autocomplete for several languages
  • sftp - an sftp file transfer plugin for ST, one of my favorite plugins, it's made by the developers of the package control package.
  • Advanced New File - Very quick file creation, if you're constantly creating new files, and can't be bothered anymore to click through all those menus all the time, then use this, it'll save you 10 seconds on each new file. It's especially useful when you need to create several files.
  • alignment - Useful for aligning blocks of text like below. Made by the developer of the package control package.
var justANumber   = 12;
var aLargerNumber = 3934;
var small         = "I'm smaller!";
var lastVariable  = 3.141592653589793238462;
  • colorhighlighter - Shows the color on color values, ex: red would get a red background.
  • css3 syntax highlighting - Enhanced css3 syntax highlighting, the built-in one misses some newer features
  • jsFormat - Beautifies your javascript. I've configured it to run on file save in my jsformat settings file.
  • Pretty JSON - Beautifier for json files. (jsFormat also includes a json beautifier I believe)
  • html beautify - Beautifier for html files. I've configured it to run on file save in my settings file.
  • sublime REPL - Interactive coding console, think console Python/ruby/node.js/lisp but then directly in sublime text. Supports a few dozen languages. One of my favorite plugins.


  • base16 theme - About 20 different color schemes to choose from, you can preview all of them here
  • Spacegray - A hyperminimal UI theme for Sublime Text, this is what I currently use.
  • Flatland - A simple theme for Sublime, I've used this one for a long time.
  • Predawn - A theme for Sublime that stays very true to its name, very relaxing and especially good in the mornings.


I'm a really big fan of the Ubuntu mono font. Otherwise, I'm probably using Fantasque, excellent font also! If you're on a mac, check out Monaco. Got a default windows installation? You should probably got with Consolas

"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"caret_extra_width": 2.5,
"default_encoding": "UTF-8",
"default_line_ending": "unix",
"detect_indentation": false,
"draw_minimap_border": true,
"draw_white_space": "selection",
"ensure_newline_at_eof_on_save": true,
"font_face": "Fantasque Sans Mono",
"font_options": "subpixel_antialias",
"font_size": 13,
"highlight_line": true,
"highlight_modified_tabs": true,
"hot_exit": true,
"index_files": true,
"line_padding_bottom": 1,
"line_padding_top": 1,
"scroll_past_end": true,
"scroll_speed": 0.7,
"sidebar_default": true,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"word_separators": "./()\"'-:,.;<>~!@#%^&*|+=[]{}`~?",
"word_wrap": true,
"always_show_minimap_viewport": true,
"caret_style": "phase",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.