hasbt.blogg.se

Visual studio code use visual studio shortcuts
Visual studio code use visual studio shortcuts







visual studio code use visual studio shortcuts
  1. #VISUAL STUDIO CODE USE VISUAL STUDIO SHORTCUTS HOW TO#
  2. #VISUAL STUDIO CODE USE VISUAL STUDIO SHORTCUTS SERIES#
  3. #VISUAL STUDIO CODE USE VISUAL STUDIO SHORTCUTS WINDOWS#

You can also use SHIFT-ALT-CTRL-PG UP and SHIFT-ALT-CTRL-PG DOWN to extend your rectangular selection by an entire page. You can also select a rectangular area from your current cursor position by using your arrow keys while holding SHIFT-ALT-CTRL. SHIFT-ALT-CTRL-Arrows: Create rectangular selection (keyboard-only) If you hold SHIFT and ALT while dragging your mouse, it will create a rectangular selection area, regardless whether there is text under the selection or not. SHIFT-ALT-Drag: Create rectangular selection You can use rectangular selections to edit … well, rectangular areas of text. To shrink your selection, using SHIFT-ALT-LEFT ARROW. Hitting SHIFT-ALT-RIGHT ARROW again will select the quotes around each word, and it will continue extending the selection every time you hit SHIFT-ALT-RIGHT ARROW. For example, if your cursor is in the middle of every word, hitting SHIFT-ALT-RIGHT ARROW will select the entire words. If you select a word and want to include the quotes (or brackets, or anything that surrounds a word), you can use SHIFT-ALT-RIGHT ARROW to expand your selection. To select all instances of the current word hit CTRL-F2. It saves you from having to manually find every instance of a word and Alt-click on every word. You can insert cursors in every instance of the selected text by clicking CTRL-SHIFT-L. You can continue hitting CTRL-U to undo more cursor operations. Simply hit CTRL-U to under your last cursor operation. And don’t try to let go of the ALT key to de-select the wrong line because you’ll lose your entire selection! You may think that alt-clicking again will deselect the line, but you’d be wrong. Picture this: you carefully selected over one hundred lines by alt-clicking and - as you get ready to click on the last line - you click on the wrong line. If you want to insert multiple cursors throughout a document that aren’t on consecutive lines, you can simply hold ALT and click on each line.

visual studio code use visual studio shortcuts

If you have a bunch of text in consecutive lines, you can simply start on a line and add cursors on the lines before or after by using CTRL-ALT-UP ARROW or CTRL-ALT-DOWN ARROW. CTRL+ALT+ ↑ / ↓: Select next/previous line It takes a while to get used to it, but once you get the hang of it, it can save you quite a bit of time. To go back to single-cursor editing, just hit ESCAPE. Once you have multiple cursors in place, you can move them just like you would a single cursor, by using the arrow keys. You use multiple cursors by creating multiple cursors in your editing window (selecting all instances of text you wish to edit), and editing your text. (It is also available in Visual Studio, but some of the shortcut keys are different). Multiple cursors is a feature that is available out-of-the-box within Visual Studio Code.

#VISUAL STUDIO CODE USE VISUAL STUDIO SHORTCUTS WINDOWS#

Multiple Cursors in Visual Studio Code for Windows

visual studio code use visual studio shortcuts

I don’t think it is particularly earth-shattering, but I do hope that someone else will learn ways to save some keystrokes.

#VISUAL STUDIO CODE USE VISUAL STUDIO SHORTCUTS HOW TO#

This article will demonstrate how to use multi-cursor editing. He had said, "you should blog about this!". Someone that I have looked up to and respected for over 15 years, who has more to teach me than I could ever teach him. Then I remembered another time, a few months ago, when I had shown the same feature to a friend of mine. He had never used multi-cursor editing before - or, apparently, seen anyone use it.

visual studio code use visual studio shortcuts

I could have produced a rabbit from the computer and he wouldn’t have been more impressed. "HOW DID YOU DO THAT?!" my co-worker asked, inappropriately too loud for a quiet office setting. I selected the whole text and inserted a " in front of every word, a " after every word, and a, at the end of every line in about 5 keystrokes.

#VISUAL STUDIO CODE USE VISUAL STUDIO SHORTCUTS SERIES#

I had a series of words to copy and move into a JSON structure. A few days ago, I was showing a co-worker on how to localize a web part using SPFx.









Visual studio code use visual studio shortcuts