

Instead, hold down the Ctrl key (Windows) or Alt key (Linux / Mac) while you’re using the arrow keys to navigate. But skipping one character at a time is pretty slow too. Skip whole word: The first thing you should get used to is navigating with the arrow keys - the mouse is slow and inaccurate. Pretty neat, huh? There are a few other shortcuts you should be familiar with to get the best out of it. You might wonder why I wouldn’t just use find/replace? After all, with the ability to find or replace using regular expressions, you can do some pretty powerful things.īut regular expressions are complicated, and since discovering this shortcut I find I rarely need them. You can keep pressing it to select more instances of the same string, too. The editor finds the next instance of that string in the document and highlights that, too. You highlight some text, then press Ctrl + D. It functions somewhat like a find/replace.

VSCode provides several mechanisms for placing cursors, but this is the one I use the most: Ctrl + D ( Cmd + D on Mac).

This means that you can write the same thing in multiple places. Such functionality allows you to place multiple cursors in the document that all accept input from your keyboard at the same time. I’m not sure what the name for the specific action is, but it is part of the multi -cursor functionality that Visual Studio Code and some other IDEs have. I suppose I should tell you what it is and what it does. In the likely event that you are overcome with excitement, I will pause a moment so you can compose yourself… The impatient amongst you may have already looked at the photo and tried the shortcut out for yourself. Kudos to the first person who leaves a comment with the answer. NB- A similar shortcut exists in IntelliJ, though I can’t for the life of me remember what it is. Hell, it’s not even just for developers - everyone should be using this shortcut, which is one reason I would recommend Visual Studio Code over Notepad++ for the casual note taker. It’s not even new, but I frequently talk to developers who’ve never heard of it. I’m not given to hyperbole, but this might be the greatest breakthrough since the splitting of the atom.
