Sublime Text is a fantastic editor and very well-known for its huge amount of customisation options. In this quick video, I go over a few Sublime Text 3 tweaks I use in my daily workflow to help streamline the editor to my needs.
I also go through the default settings and pick out a few things you might want to change yourself. Below you can find the video and a written version of what I talk about in the video. To make things easier, the written version has code snippets you can copy and paste directly into Sublime Text.
To change the font size in Sublime Text, you have two options. The first is to hold
cmd and use the scroll button. This will automatically change the save your desired font size.
The second option is to manually change the setting in your user settings file, which you can find in Preferences -> Settings – Default.
Line spacing is controlled by two parameters in Sublime Text,
line_padding_bottom. I’ve found that a value of 4 is a good place to start, but you may want the spacing a little tighter, depending on your preference.
"line_padding_top": 4, "line_padding_bottom": 4
Custom Scroll Height
Stopping the code from scrolling up past the bottom of the screen can sometimes be pretty handy. To make it stop at the bottom, you’ll need to change the
Indentation – Tabs, Spaces…
Indentation is something that’s always in huge debate amongst developers. Two spaces, two tabs, four spaces, four tabs, nobody can agree. Luckily, Sublime Text doesn’t hold you to one type, meaning you can set a default and then change it per file.
"tab_size": 4, "translate_spaces_to_tabs": true
Word wrapping is a fantastic feature, especially if you’re working on a markdown file (
.md) or a plain text file (
.txt), because it allows you to keep all the text on the screen, but not worry about adding extra line numbers.
I hope you enjoyed the video and have picked up a few good tips for tweaking the settings in Sublime Text.
Most of what I talk about can be applied to Sublime Text 2 as well, although I’m not 100% sure all of the settings and functionality are identical. If you try something and it doesn’t work, just let me know in the comments and I’ll make a note of it here.
Leave me a comment about what type of videos you’d like to see next!