acemili.blogg.se

Vs code keyboard shortcuts
Vs code keyboard shortcuts







vs code keyboard shortcuts

It is one of the most useful shortcuts that can help you collapse/uncollapse a region of code. If you get lost in the middle of your codes, the command can help to quickly reach either start or end of the file. The struggle to reach the start of a line and then add a double forward slash to the comment line can be replaced with this quick keyboard shortcut.Įven if you want to comment out multiple lines, you can select all lines using SHIFT+UP/Down and then press CTRL+/.

vs code keyboard shortcuts

It comes very handy if the next match is located far away from the first match. This command enables you to select the next occurrences of a selected text for editing. To enable Zen Mode, you can either use the above shortcut or open Command Palette and execute “View: Toggle Zen Mode.” To exit Zen mode, you need to press Esc button twice.

#Vs code keyboard shortcuts full

Want to work in a distraction-free environment to stay more focused? Zen mode is a feature in a VS Code that hides all UI (Status Bar, Activity Bar, Panel, and Sidebar) and displays only the editor on a full screen. You can also add filters to your search using ALT+C to match case, ALT+W to match the whole word, and ALT+R to use regular expression. In such a case, this command is very convenient that shows search input in the sidebar.

vs code keyboard shortcuts

Most probably you may also want to search for a text, variable, or function in your whole project. Hence, CTRL+G or ^+G VS Code Keyboard Shortcut can quickly take you to a line you want.Īlternatively, you can also use the fourth shortcut for ‘Go To File,’ where appending : colon with line number in the input box works as ‘Go To Line.’ If a file contains thousands of lines of code, scrolling can definitely eat up your time. Once you search a file, you may now want to jump to a specific line for adding or editing code. Hence, I would suggest even you use a mouse, this command can save you a lot of time in searching and navigating to a file in a repository. However, like me, if you find pressing “CTRL+`” difficult to use due to its weird corner location, you can still open Command Palette and execute View.Īs the project grows, looking for a file might become a very difficult task. To hide/unhide the terminal in the editor, this keyboard shortcut comes in very handy. Integrated terminal in VS Code is a very convenient feature that lets you execute the task quickly without switching windows. To change focus into editor group, you can either use number or arrow keys. If you don’t have a multi-monitor setup for high productivity, you can still view codes of multiple files at once by splitting the editor either horizontally or vertically. Split VS Code Editor Vertically Or Horizontally It is a very important VS Code Shortcut because even if you forget or don’t want to remember any shortcut except this one, you can still perform various operations using Command Palette like create a new file, open settings, change theme, and view all keyboard shortcuts as well.Ģ. Starting with the most helpful shortcut, it opens Command Palette that provides access to all of the functionality of VS Code. You may explore more of them based on your needs. These keyboard shortcuts are what I find most useful when working in VS Code. So, let’s get to know how you can code fast by quickly navigating through the code editor using keyboard shortcuts. It will not just help you to get rid of a mouse, but also make you highly productive and efficient. Unlike the legendary Vim, VS Code doesn’t need you to be a keyboard ninja and has tons of features that developers swear by.īut this doesn’t mean you cannot, or you should not use keyboard shortcuts in Visual Studio Code.ĭo you hate breaking your coding flow and move your hand to a mouse for performing an action like toggling terminal in your Visual Studio Code (VS Code) editor? If yes, then you should immediately get yourself familiar and memorize these useful keyboard shortcuts for VS Code. There is no doubt that Microsoft’s VS Code is one of the best open source code editor out there.









Vs code keyboard shortcuts