forsaleret.blogg.se

Visual studio code shortcuts for mac
Visual studio code shortcuts for mac













visual studio code shortcuts for mac visual studio code shortcuts for mac

Windows: Ctrl + D (to select next occurrence(s) after you make an initial selection). MacOS: Command + D (to select next occurrence(s) after you make an initial selection) Of all the VS Code shortcuts this is one of my favorites and will boost your productivity. In that example you would highlight just one H3 tag, and as you hit the shortcut below it goes through and selects the other instaces of that tag, providing you an active cursor with each one. You multi-select them all and change them all in one take. So you go through and select each one and change it? No. So you decide to change all of the H3 tags on your template to H4 tags. This shortcut allows you to indent or outdent a line or even an entire block of code. When you copy and paste something in Visual Studio Code, it doesn't always line up right (actually it rarely does). Indent / Outdent LineĪnother of the very helpful VS Code shortcuts and one to memorize. Again helpful with single lines like reordering Similar to the shortcut above, but this moves the line of code up or down. Windows: Shift + Alt + Up / Shift + Alt + Down 3. MacOS: Shift + Option + Up / Shift + Option + Down tags and also with whole blocks of code like a CSS block or JS function.Basically, you can take a line of code and duplicate it on the line above or below. This is a shortcut I use a lot in my workflow to boost productivity. It's the shortcut that gives you access to all of the functionality of VS Code.

visual studio code shortcuts for mac

The command palette is one of the most foundational of all VS Code shortcuts. Or if you prefer to read the article, read on! 1.















Visual studio code shortcuts for mac