![]() ![]() If you wan’t to add a cursor a line above or below where the current cursor is placed, press cmd+opt+up/down or ctrl+alt+up/down to insert the cursors. VS Code allows usage of having multiple cursors across lines so you can modify code in multiple places at once. Adding cursors above & below - cmd/ctrl + opt/alt + up/down arrow For more info, head over to the August 19 Weekly digest post for more info. For large-scale projects, being able to open a file by starting to type in the first few letters and then selecting an option in a panel similar to the command palette makes browsing a project extremely fast. File Palette: cmd/ctrl+pĪ few weeks ago, I mentioned this keyboard shortcut of opening a file picker. As well, on the right side of any action, if it has a mapped keybinding, it will present it to you.įor things you use frequently including a majority of things that will be discussed later in this article, learning those keyboard shortcuts will make it much easier rather than searching for it time and time again. Start typing whatever you wish to do and it will appear in the search results. Absolutely any action you can do with a mouse is actionable through the command palette. ![]() One of the most powerful keyboard shortcuts is to open the command palette with ctrl/cmd + shift + p. Just as a note, a lot of keyboard shortcuts which use the cmd key on MacOS are mapped to the control key on Windows and Linux so I will be using either style throughout the rest of the article. Switching to VS Code, it is more visually based, but as I show here, the majority of the editor can be controlled with keyboard shortcuts. I used Vim previously before switching to VS Code and the Vim philosophy is to continually use keyboard shortcuts to make programming much faster as you become more advanced in Vim. Adding cursors above & below - cmd/ctrl + opt/alt + up/down arrow.Command Palette: cmd/ctrl+shift+p or F1.Today, I want to go into how you can control the majority if not all of your editor using the keyboard alone. VS Code has many ways to control the editor through menus, the keyboard, panels in the sidebar, and many more. Top keyboard shortcuts to remember in VS Code Septem3 minutes to read ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |