My Sublime Text 2 settings

25th October 2012

Sublime Text 2 has been my text editor of choice for the past few months, and I use it at home, in work, and on any virtual machines that I run. So rather than having to manually re-enter my settings each time, I thought that I'd document them here for future reference.

These preferences ensure that the code is compliant with Drupal coding standards - using two spaces instead of a tab, no trailing whitespace, blank line at the end of a file etc.


These can be changed by going to Preferences > Settings - User.

  "color_scheme": "Packages/Theme - Aqua/Color Schemes/Tomorrow Night Aqua.tmTheme",
  "default_line_ending": "unix",
  "ensure_newline_at_eof_on_save": true,
  "fallback_encoding": "UTF-8",
  "font_size": 16.0,
  "highlight_line": true,
  "line_padding_bottom": 1,
  "save_on_focus_lost": true,
  "shift_tab_unindent": true,
  "tab_size": 2,
  "theme": "Soda Light.sublime-theme",
  "translate_tabs_to_spaces": true,
  "trim_automatic_white_space": true,
  "trim_trailing_white_space_on_save": true,
  "word_wrap": false

Key bindings

These can be changed by going to Preferences > Key Bindings - User.

  { "keys": ["alt+s"], "command": "toggle_side_bar" },
  { "keys": ["alt+r"], "command": "reindent" }


These are the packages that I currently have installed.

Questions? Comments? I’m @opdavies on Twitter.

Tags: sublime-text

About the Author

Picture of Oliver

Oliver Davies is a full-stack Web Developer and System Administrator based in the UK. He is a Senior Developer at Microserve and a part-time freelancer specialising in Drupal, Symfony and Laravel development and Linux systems administration.