Small Tips on Sublime2

Just come across some interesting tips to make my life easier on Sublime2.

Go to SublimeText 2 > Preferences > User Settings (or just hit the Mac Standard cmd + ,). This should open your User Settings as a JSON file.

Add the following configurations to your Sublime2 and enjoy hacking:)

1
2
3
4
5
6
7
8
9
10
11
{
"color_scheme": "Packages/Color Scheme - Default/Dawn.tmTheme",
// Strip whitespace on Save
"trim_trailing_white_space_on_save": true,
// Translate tabs into spaces
"translate_tabs_to_spaces": true,
// Set the tab size
"tab_size": 4,
// Set the ruler for 100 characters
"rulers": [100]
}

For more about Sublime2 configurations, please visit the following tutorials: