This keyboard shortcut allows you to do the same as the previous one, but without having anything selected. Then, by pressing the keys of the shortcut, you’ll select all its occurrences in the file. With this keyboard shortcut, all you need is to have one occurrence of the text you’re looking for in the file selected. The first requires you to already have the word or phrases selected, while the other doesn’t. Two keyboard shortcuts can be used in a situation similar to this. How many times do you need to rename a variable, or simply change a certain repeated text or phrase throughout the entire file you’re working with? This keyboard shortcut makes it very simple. Select current lineĪ lot of times you need to select the entire current line your cursor is at.
These keyboard shortcuts focus on making selections quickly. Instead of doing so with your machine’s mouse, doing it with the keyboard saves you time. The command palette allows you to search through the commands you can use and execute them.ĭuring development, you’ll most probably need to make selections in your code, whether for copying, cutting, or other purposes. With this keyboard shortcut, you can easily open the command palette. These commands can be related to out-of-the-box features or extension features. There are lots of commands you can execute in Visual Studio Code. This saves you from moving between the editor and the terminal and allows you to completely focus on the editor and the code. Visual Studio Code allows you to open a terminal window right inside the editor.
This shortcut also allows you to create a new group if the editor group you select in the shortcut is higher than the number of groups currently open.ĭuring your development, you’ll most likely be using the terminal a lot. This keyboard shortcut makes it easier and faster to navigate between groups in the editor group history. Tab groups allow you to split up your tabs into groups, and each editor group takes a part of the screen. One of the nice features that Visual Studio Code provides is creating tab groups. Keep pressing tab to switch between tabs. When you have a lot of tabs open and you need to move between them, one easy way to do it is with this keyboard shortcut, which shows you the list of the tabs and lets you navigate between them and choose which one you want to open. So, this keyboard shortcut is handy to show or hide the sidebar whenever necessary. This keyboard shortcut makes it easier to get to the settings whenever necessary.Ī lot of times you need more space for the open file you’re working on. Visual Studio Code comes with a lot of features and settings that you can change to fit your needs. Even if you already know where the file is, it’s definitely handy to learn this keyboard shortcut to easily open files in your project. Searching for a specific file, especially as the project gets larger, can chew up a lot of time. This section presents all the Visual Studio Code shortcuts that allow you to navigate different parts of the editor. If some shortcuts don’t work, it could be due to changes in shortcuts in your editor or file format, or sometimes due to extensions installed. Please note that these Visual Studio Code shortcuts are taken from VS Code’s documentation. It also provides support for many languages and frameworks, whether through built-in features or the extensive list of extensions available for the editor. Visual Studio Code (VS Code) is one of the most popular and most used code editors. This article covers default keyboard shortcuts for Windows, Linux and macOS. In this article, we’ll go over some of the most useful Visual Studio Code shortcuts that will save you time and supercharge your development when using Visual Studio Code.