

Ctrl + K & Ctrl + 0 / Ctrl + K & Ctrl+J xv.) Include line commentĬtrl+K, Ctrl+C is a primary keyboard shortcut for adding line comment.

You can fold (collapse) all regions by pressing Ctrl + K and then Ctrl + 0 and Unfold (uncollapse) all regions by pressing Ctrl + K and then Ctrl + J. Ctrl + K & Ctrl+ xiv.) Fold and unfold all regions You can fold (collapse) all subregions by pressing Ctrl + K and then Ctrl +. Ctrl + Shift + xii.) Fold and unfold all subregions When you place your cursor inside a block of code, you can quickly fold it with Ctrl+Shift+ simultaneously. Alt + PgUp / PgDn xii.) Fold or unfold the region Ctrl + ↑ / Ctrl + ↓ xi.) Pan up/down on the pageīy employing this Linux shortcut, the page can be scrolled up/down. If you press down the Ctrl + ↑ / Ctrl + ↓ shortcut, either it will be scrolled up or down by a line. Ctrl + Home / Ctrl + End x.) Move up and down a line Home / End ix.) Navigate to the file's the beginning/endīy pressing Ctrl + Home or Ctrl + End, you can go to either the beginning or the end of a line. In order toggle between the beginning of the line and the ending of the line, press home or end. Ctrl + ] / Ctrl + [ viii.) Toggles between beginning and ending Move multiple lines together by selecting them all.

By applying this shortcut, you can efficiently indent or outdent lines. When copying lines between files or modifying code, you may end up with inaccurately indented code. Ctrl + Shift + \ vii.) Indent / Outdent line Ctrl + EnterĬtrl + Shift + Enter vi.) Advance to the matching bracketĪs a result of implying this command line shortcut in Linux, jump to the bracket that matches. Inserting lines above and below are executed by pressing Ctrl+Enter and Ctrl+Shift+Enter, respectively. Ctrl + Shift + K v.) Insert the line below/ above Simply place the cursor on the line you wish to delete and hit the keys. The Ctrl+Shift+K keyboard combination is used to delete a line quickly in VSCode. Ctrl + C iii.) To move the line up/downīy using this command in VS code, a line can be moved downward or upward.

To copy a highlighted image, text, or other object, right-click the object and select copy or simply use this shortcut. Ctrl + X ii.) Copy the line (empty selection) This Linux hotkey cut an object\line that has been highlighted, such as a text or image. Editing basics i.) Cut the line (empty selection) This VS code Linux shortcut opens a new tab in which all of the current shortcuts are listed. We can view the current settings here or modify them if necessary. The settings window opens when you press this Linux shortcut. Furthermore known as Ctrl + W, Ctrl + W is a shortcut for Linux used for closing programs, windows, tabs, and documents.
#VISUAL CODE COLLAPSE ALL SOFTWARE#
Ctrl + Shift + N iii.) Exit the window or instanceīy pressing + +, you can close the current window in most software applications. We can open a completely new window by using this Linux shortcut, which opens a completely new window or instance of the application. Ctrl + Shift + P ii.) Create a new window/instance The command palette is quite useful, for say, when an individual who is on the lookout for a typical command in VS code, but does not remember the command. We can look for alternative commands in the command palette by pressing this shortcut. The fundamental shortcuts i.) Display command palette TL DR: The complete blog can be viewed here in a shortened version.ġ. A list of the most frequently used VS code Linux keyboard shortcuts has been compiled to help you save time. It can also be annoying to have to repeatedly type the same commands, each slightly different.ĭespite this, Linux proffers a substantial array of keyboard shortcuts and history functions that makes it simple to work with the VS code productively.
#VISUAL CODE COLLAPSE ALL HOW TO#
It may be difficult for beginners to grasp how to use the VS code, especially since you have to use your arrow keys to navigate. Every user of the VS code should be familiar with some Linux keyboard shortcuts.Īlmost every Linux user is familiar with the Bourne Again SHell (Bash) since it is the pre-configured shell in most distributions. There is no exception to this rule when it comes to Linux shortcuts. Consider this for a moment.ĭo you think it is okay if someone repeatedly selects text by dragging through the mouse and selecting the cut option from the menu for once instead of pressing Ctrl+X? or by holding down the mouse button to copy the entire text instead of pressing Ctrl+A? It is possible to become more efficacious and proficient with any tool when you know how to use shortcuts.
