I like CMD + D to select the next identical selection, OPT + DOWN/UP to move the selections down or up a line, SHIFT + OPT + DOWN/UP to duplicate the selection, and CMD + / to turn the line into a comment. How bout you?
I like CMD + D to select the next identical selection, OPT + DOWN/UP to move the selections down or up a line, SHIFT + OPT + DOWN/UP to duplicate the selection, and CMD + / to turn the line into a comment. How bout you?
Honestly, the single thing that can improve editing speed is learning how to code with multiple cursors.
It takes about a solid week of practice just to recognise and catch yourself in a situation where using multiple cursors would make you more efficient, and to start using the shortcuts. It takes another week or two to get back up to your old regular speed. After that, you’ll find that the old speed ceiling has been removed and you’ll continue to get faster and faster until you hit a new ceiling (which is usually your WPM).
This 100%. Part of my job is writing test cases, which can be extremely repetitive. With multiple cursors, I can frame out a dozen or more cases simultaneously and then go through and fill in the details. It significantly reduces typing time.
Also, if you work with any sort of XML or HTML, learn Emmett abbreviations and learn them properly. It will take you an hour to learn them properly, but they save so much time over typing tedious tags longhand. Being able to type
html>(head>meta[charset=utf-8]/+title{My page})+body
saves so much time over<html> <head> <meta charset="utf-8"/> <title>My page</title> </head> <body> </body> </html>
Protip: when using emmet, just type
!
once then press tab.It will write out:
With the first tab stop at:
device-width
, the second tab stop at1.0
, the third atdocument
, and the fourth indented between the body tags.This means that if you want to create a new html page specifically with the title “My page” and end with the cursor in the body ready for your new hand written html or your next emmet abbreviation, you only need to press the following:
!
So it only takes 13 keystrokes (of which 8 keystrokes were typing out the title) to create the following: