Best features you should know about sublime text
Sublime text
is one of the best code editor. Its light weight, as you can change setting and configuration be changing single parameter. Below are some features which make sublime most popular in developers.
Sublime supports syntax formatting for around 40 programming language support including most well known languages such as PHP, C, C++, Java, JavaScript and more. Sublime plugins like alignment adds additional features in code formatting.
Sublime has thousands of active plugins available to install free. Checkout plugins (www.packagecontrol.io) for sublime here. To install plugin press ctrl+shift+p
and type install by hitting enter package list will be displayed and just search plugin you want to install and hit enter. That’s it sublime will install it automatically.
Its frequency of crash is too much less comparing to other editors. Also sublime provides cool feature of autosave a document. Assume, you have created new document and suddenly sublime crashed automatically. In such situation, document will be automatically saved and get back when you open sublime next time.
It stores default setting in preference >> Setting – Default
in simple syntax. It allows you to changes setting from preference >> Setting – User
. Lets take an example, assume you want to change font size of document then its so simple syntax.
1
2
3
|
{
"font_size": 13
}
|
Above code will change font to 13.
Sublime comes with set of flexible shortcut keys that user can change from Preference >> Key bindings - Default
and also add custom keys Preference >> Key Bindings - User
. Here is example to change short key to open new window and close current window.
1
2
3
4
|
[
{ "keys": ["ctrl+shift+n"], "command": "new_window" },
{ "keys": ["ctrl+shift+w"], "command": "close_window" },
]
|
Just replace ctrl+shift+n
with ctrl+shift+w
and save by ctrl+s
. That’s it your job is done shortkey to open new window is changed to ctrl+shift+w
.
Sometimes, we need to find word from specific directory. Somelime’s find also is really much faster then other editor. ctrl+shift+f
is shortcut key for directory search. Also you can add multiple different directories in single search. For example, you want to search keyword in drive D and E then add ‘D:\, E:\’
(Add two locations separating by ‘,’).
It is my most favorite editor ever.