The Right way to use Sublime Text
After having used sublime text for about 2 years the wrong way, I have finally learnt my lesson. I am going around the internet looking for ways to be more productive with Sublime Text.
Sublime Text is a swiss army knife with all forms of tips and tricks up it’s sleeve. These include but are not limited to keyboard shortcuts, creating projects and code snippets.
I will keep listing down interesting things I find so this blog will be updated regularly for a few days. Remember to try out these tricks hands on as you read through them else they won’t get registered in your mind.
So let’s get started!
-
Next Occurance of a word
cmd + d
(Mac) |ctrl + d
(PC) -
Multi-cursor
cmd + Left moust click
|ctrl + Left moust click
-
Column selection
alt + left click drag
|shift + right click drag
-
Split selection into lines
cmd + shift + L
|ctrl + shift + L
-
Move cursor to beginning of line
cmd + left arrow
|home
-
Wrap selection with html tag
ctrl + shift + w
|alt + shift + w
-
Move line vertically
cmd + ctrl + arrow
|ctrl + shift + arrow
-
Duplicate Line
cmd + shift + D
|ctrl + shift + D
-
Delete Line
ctrl + shift + K
|ctrl + shift + K
-
Indent line
cmd + [ or ]
|ctrl + [ or ]
(AlsoEdit -> Line -> Reindent
for indentation of selection) -
Paste & Indent
cmd + shift + V
|ctrl + shift + V
(Very very useful!)
Again, do try all this out by yourself!
Cheers!
If you are an Infosec person, don’t forget to checkout my CTF Write-ups
Follow @CodeMaxx
Hacking Postgres Internals - Indexing Schemes for Data Recording Systems