Skip to content

ST2: Setup

Micky Hulse edited this page Jan 26, 2015 · 1 revision

To get to your "settings" files (and other preference files):

Sublime Text 2 >> Preferences >> [ YOUR CHOICE GOES HERE ]

Note: Changes to your setting(s) file(s) take affect immediately after save.


Micky's key bindings:

In Preferences > Key Bindings - User:

[
	
	{ "keys": ["ctrl+s"], "command": "toggle_side_bar" },
	{ "keys": ["ctrl+shift+d"], "command": "file_diff_menu" },
	
	{ "keys": ["super+alt+f"], "command": "show_panel", "args": {"panel": "find"} },
	{ "keys": ["super+f"], "command": "show_panel", "args": {"panel": "replace"} },
	{ "keys": ["super+t"], "command": "replace_next" },
	{ "keys": ["super+g"], "command": "find_next" },
	{ "keys": ["super+k"], "command": "fold_tag_attributes" },
	
	{ "keys": ["super+m"], "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" } }
	
]

Micky's Settings - User file:

{
	"auto_complete_commit_on_tab": false,
	"color_scheme": "Packages/User/Monokai Soda.tmTheme",
	"detect_indentation": false,
	"draw_white_space": "all",
	"font_face": "Monaco",
	"font_size": 14.0,
	"ignored_packages":
	[
		"Vintage"
	],
	"indent_to_bracket": true,
	"line_padding_bottom": 1,
	"line_padding_top": 1,
	"open_files_in_new_window": false,
	"rulers":
	[
		72,
		76,
		80,
		84,
		88,
		92,
		96,
		100
	],
	"scroll_past_end": true,
	"smart_indent": true,
	"theme": "Soda Dark.sublime-theme",
	"trim_automatic_white_space": false,
	"word_wrap": false
}

Note: Find similar font to Panic Sans here.

Patrick's Settings - User file:

{
	"auto_complete_commit_on_tab": false,
	"auto_match_enabled": true,
	"color_scheme": "Packages/User/Monokai.tmTheme",
	"draw_white_space": "all",
	"font_face": "Consolas",
	"font_size": 11,
	"ignored_packages":["Vintage"],
	"ignored_words":["3/jquery"],
	"indent_to_bracket": true,
	"open_files_in_new_window": false,
	"rulers":[72],
	"smart_indent": true,
	"spell_check": false,
	"theme": "Soda Dark.sublime-theme",
	"trim_automatic_white_space": false,
	"word_wrap": false
}

Notes: Requires: Custom Monokai Color Scheme: ST2:-Monokai-Theme and Soda Dark theme install.


Modify app chrome:

Check out the Soda Theme.

I like Soda "dark", as it has a dark sidebar (CTRL + S).

  1. Cmd + Shift + P >> Install Package >> "Soda" theme.
  2. Add "theme": "Soda Dark.sublime-theme" to your user config.
  3. Restart ST2.

Note: Themes are different from color schemes, so they just impact the sidebar and other "chrome" elements. Another way to edit the sidebar color

Color scheme:

I like the Soda color scheme (found as a download on this page). Instructions:

  • Download colour-schemes.zip
  • Unzip and place the extracted tmtheme files in the Sublime Text 2 Packages/User folder
  • Enable the colour scheme via Preferences -> Color Scheme -> User

Note: The Packages/User folder is here:

~/Library/Application\ Support/Sublime\ Text\ 2/Packages

Change the opacity of theme rulers (aka tab stops):

  1. Sublime Text 2 >> Preferences >> Browse Packages...
  2. Open folder User.
  3. Open/edit Monokai Soda.tmTheme.
  4. Modify the background setting (notice the 40, that's the opacity value):
<key>settings</key>
    ...
    <key>foreground</key>
    <string>#F8F8F240</string>
    ...

See:


Clone this wiki locally