Visual Studio Shortcut Keys For Mac10/10/2021
Or if you prefer to read the article, read on! 1. In this recipe, we describe how to use some of the common shortcut keys that will. There are a number of shortcut keys that will make coding and project navigation much faster and more efficient for you. Knowing shortcut keys offhand is always good. Shortcut keys really save you time when coding. Shortcut keys in Visual Studio.tags and also with whole blocks of code like a CSS block or JS function.MacOS: Shift + Option + Up / Shift + Option + DownWindows: Shift + Alt + Up / Shift + Alt + Down 3. This is helpful with single lines like Basically, you can take a line of code and duplicate it on the line above or below. Duplicate Line Down/UpThis is a shortcut I use a lot in my workflow to boost productivity. Path turned out to be: Visual Studio Code Download Hope this helps If you want to easily duplicate a line of code in Visual Studio Code, you can do it with a simple keyboard shortcut.Windows: Ctrl + Shift + P 2.This shortcut allows you to indent or outdent a line or even an entire block of code.Windows: Ctrl + ] / Ctrl + [ 5. When you copy and paste something in Visual Studio Code, it doesn't always line up right (actually it rarely does). Indent / Outdent LineAnother of the very helpful VS Code shortcuts and one to memorize. Again helpful with single lines like reordering Windows: Alt + Up / Alt + Down 4.
Visual Studio Shortcut Keys How To Use SomeYou can also use it again to re-enable that line or block of code by removing the comment markup.Windows: Ctrl + / 8. Toggle Line CommentSo we use line comments to "disable" a line or block of code or HTML or CSS right?This Visual Studio Code shortcut allows you to disable a line or block of code by commenting it out. Multi-Select CursorSimilar to the above, but instead of selecting the next occurrences of a selection, you can place your cursor in multiple locations, and make edits to all and one time.Windows: Alt + Click 7. You multi-select them all and change them all in one take.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.Of all the VS Code shortcuts this is one of my favorites and will boost your productivity.MacOS: Command + D (to select next occurrence(s) after you make an initial selection)Windows: Ctrl + D (to select next occurrence(s) after you make an initial selection).* There is a shortcut to select ALL occurrences, but I like to go through them one by one to be sure I want to change that one. So you go through and select each one and change it? No. At the same time, when I need it back, I want it back with ease.Visual studio code can be downloaded at their website. I don't like that sidebar there when I'm writing code. Toggle SidebarOf all the VS Code shortcuts, this is another major one for me. Use your right hand to hit the K and left to this the C while holding Command.Windows: Ctrl + K Ctrl + C 10. So of all the VS Code shortcuts, this is especially useful for me and for you if you do the same.Adding a line comment to HTML and CSS is somewhat cumbersome to type out.Thankfully VS Code has a shortcut to pop it in there for you. You will surely find a boost in your productivity and your efficiency as a programmer. ConclusionTake the time to memorize these VS Code extensions and incorporate them into your workflow. Also, VS Code is a full IDE, is packed with loads of features, extensions, is free, and thankfully open source. I found Brackets to be not quite enough for what I need, Atom to be super slow and bulky, the JetBrains IDEs too expensive, and Sublime isn't free.
0 Comments
Leave a Reply.AuthorJeff ArchivesCategories |