As I’ve been writing the Sublime Text Power User book over the last few months, I’ve had some interesting conversations around favourite features of ST. The one feature that I constantly surprise people with is called line bubbling – moving lines of code up and down a document without cutting and pasting them.
It’s an extremely simple feature but will save you lots of time and potentially lost code.
Let’s take this list as a very basic example. This list could be any block of code that you want to move up or down – they are only numbered as a visual.
- Item 4
- Item 1
- Item 5
- Item 3
- Item 2
How do we move them up and down to end up in the correct order? We could cut and paste, but line bubbling is much faster.
In Sublime Text, hold down ⌘
+ control
(CTRL
+ SHIFT
on Windows) and use your ↑ up* and ↓ down arrow keys to move the lines around. This works for single and multiple lines.
Check out the video for a visual:
Easy! Want to learn more, sign up below and I’ll let you know when my book comes out.
Let me know when this book launches
Enter your email address below and I’ll give you a hoot when its ready plus a discount code for being so great!
via Wes Bos http://wesbos.com/learn-sublime-text-line-bubbling-in-2-minutes/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+wesbos%2FZXAx+%28Wes+Bos%29
Comentaris
Publica un comentari a l'entrada