In particular, increase_font_size and decrease_font_size both modify the current value of the setting, while as you've noticed the reset_font_size command deletes it entirely in order to return things to the default.Īt first blush you might try using the set_setting command instead of reset_font_size, which would allow you to reset the font_size back to the value that want to be the default. 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.The commands increase_font_size, decrease_font_size and reset_font_size are defined in the Default package in the font.py plugin, and they work by directly modifying the value of the font_size setting in Preferences.sublime-settings. 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. I hope you enjoyed the video and have picked up a few good tips for tweaking the settings in Sublime Text. txt), because it allows you to keep all the text on the screen, but not worry about adding extra line numbers. Word wrapping is a fantastic feature, especially if you’re working on a markdown file (. "translate_spaces_to_tabs": true Word Wrapping Luckily, Sublime Text doesn’t hold you to one type, meaning you can set a default and then change it per file. Two spaces, two tabs, four spaces, four tabs, nobody can agree. Indentation is something that’s always in huge debate amongst developers. To make it stop at the bottom, you’ll need to change the scroll_past_end setting… "scroll_past_end": true Indentation – Tabs, Spaces… Stopping the code from scrolling up past the bottom of the screen can sometimes be pretty handy. "line_padding_bottom": 4 Custom Scroll Height 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 spacing is controlled by two parameters in Sublime Text, line_padding_top and line_padding_bottom. The second option is to manually change the setting in your user settings file, which you can find in Preferences -> Settings – Default. This will automatically change the save your desired font size. The first is to hold ctrl/ cmd and use the scroll button. To change the font size in Sublime Text, you have two options. To make things easier, the written version has code snippets you can copy and paste directly into Sublime Text. Below you can find the video and a written version of what I talk about in the video. I also go through the default settings and pick out a few things you might want to change yourself. 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. Sublime Text is a fantastic editor and very well-known for its huge amount of customisation options.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |