maioupdate.blogg.se

Visual studio code mac shortcuts
Visual studio code mac shortcuts




How many times do you find yourself holding down left arrow while the cursor slowly moves towards the middle of the line so you can fix a typo or replace a word? I also prefer the difference of  instead of using SHIFT as a modifier. I prefer my keybinding because it is the default in Eclipse, which is where I learned this shortcut. Think of it as an "undo/redo" for your cursor. This shortcut will move your cursor to where it was before/after, even across files. Now you want to go back to the previous file and re-read a line, but you can't remember which file it was or what line number.

visual studio code mac shortcuts

Let's imagine you have 5 files open and you're trying to follow the code flow between files. I prefer my keybinding because "Line" starts with "L" so it's easier for me to remember CMD + L than CTRL + G. This is really helpful when you are dealing with larger files and need to find a specific line (maybe from the result of a stack trace while debugging). #Go to lineĪ lot of people don't realize almost all text editors have a Go To Line utility built in. I stick with the VS Code default for this one because it's what I started out using. VS Code default: OPTION + up/down arrow key.How often do you find yourself copy/pasting lines to move them up or down throughout a line? With this keyboard shortcut, you can simply use your arrow keys to move lines around. I prefer my keybinding over the VS Code default because I can press it with just my left hand. This shortcut also works on multiple lines, if you have multiple highlighted. This works, however a shortcut can make it much faster. #Delete line(s)īefore you utilize a delete line shortcut, you find yourself highlighting an entire line and then pressing backspace or delete. Preface: These shortcuts may not apply to some editors such as Vim, etc. The keyboard shortcuts I list in this article are OSX specific, but they should transfer over to Windows if you replace: I use VS Code as my IDE, but these shortcuts can be applied to any editor. Here are 5 keyboard shortcuts you can implement in any IDE to help navigate your code faster.

visual studio code mac shortcuts

Highlight characters as you use start/end of word/line






Visual studio code mac shortcuts