Sublime Text Editor – useful settings and shortcuts

I am publishing my Sublime text editor settings and shortcut keys which are very much helpful in getting my work done easily.

User Settings:

{
"font_size": 14,
"tab_size": 2,
"word_wrap": true
}

Shortcut Keys:

ctrl + r – to find css classes/IDs easily in a css file
ctrl + j – to align multiple lines into single line . mainly useful for single line css
ctrl + L – Select a line.
ctrl + D – Select a word/ duplicate a word or line(s)
ctrl + P – find any file on your project folder in fraction of second
ctrl + space – autocomplete for codes respectively
ctrl + / – comment purpose
ctrl + F – for normal search
ctrl + shift + F – Advanced search
ctrl + shift + G – wrap a text or codes
Alt + shift + W – also wraps text or codes
crtl + shift + a -Selecting Everything Inside an HTML Tag
ctrl + shift + k – Deleting Lines
ctrl+shift+up/down – while arrange html tags it will be useful

Misc:

  • If you are working on more than 1000 lines of code, and if you want to check some code in multiple parts of the same file, you can use Go to File -> New view into File so that you can have multiple views of same file in tabs and toggle between them for easy reference.
  • for sublime packages, refer this link.

For further more settings and shortcuts, refer sublime documentation.

 

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *