Facebook Twitter Instagram
    Tuesday, June 10
    Facebook Twitter LinkedIn VKontakte
    Tech Lounge
    • Home
    • Business
    • Internet
    • Tech
    • Apps
    • Lifestyle
    • Phone
    • Security
    Tech Lounge
    Home » VS Code Keyboard Shortcuts for Mac, Linux & Windows
    Internet

    VS Code Keyboard Shortcuts for Mac, Linux & Windows

    ElsaBy ElsaMarch 22, 2023Updated:March 22, 2023No Comments6 Mins Read
    Share
    Facebook Twitter LinkedIn Pinterest Email

    VS Code Keyboard Shortcuts for Mac, Linux & Windows. Visual Code is a popular source code editor and the first to support IDE applications that run on different platforms. For programmers like you, it provides many keyboard shortcuts. To help you boost your productivity, read on to learn some of the best keyboard shortcuts.

    VS Code Keyboard Shortcuts for Mac

    To help you save time while using VS Code on your Mac, check out the keyboard shortcuts listed below.

    VS Code Keyboard Shortcuts for Mac, Linux & Windows

    Quick Open

    Use the “CMD + P” shortcut to open files quickly. Then use the down and up arrows to navigate through your files.

    Arrow keys. Once you’ve located the file you want to open, press the right arrow key. The background of your screen will move to the left every time you open a new file.

    Command Palette

    Using the Command Palette, you can easily access the file commands relevant to your current coding context. Instead of looking through menus, you must enter a keyword that fits.

    Press the “CMD + SHIFT + P” shortcut to access the Command Palette.

    VS Code Keyboard Shortcuts for Mac, Linux & Windows

    Toggle the Sidebar

    To toggle between the full-width editor view and the sidebar, use the “CMD + B” shortcut.
    VS Code Keyboard Shortcuts for Mac, Linux & Windows

    Multi-Select Cursor

    If you need to change all of your H3 tags to H4, for example, you don’t have to adjust each instance manually.
    Select all instances of the thing you want to change at once using the multi-select feature. To use the shortcut, select one of the tags and press “CMD + D.”

    VS Code Keyboard Shortcuts for Mac, Linux & Windows
    This will find all instances of the selected tag and then show an active cursor for further action.

    Comment Code Block

    It is essential to comment on Code and is done frequently. To comment out the lines of Code, enter “SHIFT + OPTION + A.”
    VS Code Keyboard Shortcuts for Mac, Linux & Windows

    Copy Line

    You may need to copy lines of Code to paste elsewhere in your project. Use “OPT + SHIFT + UP”

    or “OPT + SHFT + DOWN”

    Shortcuts for completing this quickly.

    Show All Symbols

    Use “CMD + T” to see all functions, files, classes, etc.

    Shortcut. This will launch a Reference view that shows the symbols in your Code. This shortcut is similar to global find but uses symbols instead.

    VS Code Keyboard Shortcuts for Windows

    VS Code Keyboard Shortcuts for Mac, Linux & Windows

    In Windows, use Visual Code shortcuts to save time by skipping through menus to access features.

    Quick Open

    Use the “CTRL + P” shortcut to open files quickly. Then, use the down and up arrow keys to find

    VS Code Keyboard Shortcuts for Mac, Linux & Windows

    The file(s) you want, then hit the right arrow key. The previously opened files will move to the background of your screen when you open new files.

    Command Palette

    Use the “CTRL + SHIFT + P” combination.

    Launch the Command Palette with this shortcut. Accessing the file commands pertinent to the current situation is made simple by the Command Palette. Once the Command Palette is opened, all you have to do to find the command you’re looking for is type in the associated keyword. This will save you time from having to look through menus.

    Toggle the Sidebar

    Toggle the sidebar to show or hide the editor view. To do this, use the “CTRL + B” shortcut.

    Multi-Select Cursor

    If, for example, you need to change all your tags from H2 to H3, you can use the multi-select feature to change all instances at once. On Windows, select one of the tags you want to change, then enter “CTRL + D.”

    The active cursor is shown after VS has found all instances of the selected tag.

    Comment Code Block

    One of the most common things done when coding is commenting out code sections. Use “SHIFT + ALT + A” to create a multi-line comment.

    For a single line, it’s


    “CTRL + K + C.”

    Copy Line

    The option to move lines of code around by copying and pasting it is another common action. Use the “SHIFT + ALT + UP”
    VS Code Keyboard Shortcuts for Mac, Linux & Windows
    or “SHIFT” + ALT + DOWN”

    shortcuts to do this.

    Show All Symbols

    Use “CTRL + T” to open a Reference view with all your Code’s symbols, such as classes, functions, files, etc.

    Shortcut. This shortcut is similar to the global find feature for symbols.

    VS Code Keyboard Shortcuts for Linux

    If you’re coding from a Linux computer, consider using these shortcuts for speed and efficiency.

    Quick Open

    Enter “CTRL+P” to quickly access your files..
    VS Code Keyboard Shortcuts for Mac, Linux & Windows

    Then, to look through them, use the up and down arrow keys. Once you’ve located the file you want to open, press the right arrow key. Your most recently opened files will move to the front of your screen, while your older files will move to the back.

    Command Palette

    Use “CTRL + SHIFT + P” to launch the Command Palette.

    Shortcut. The active cursor will then be shown, awaiting further action after all instances of the selected tag have been located and highlighted.

    Toggle the Sidebar

    Using “CTRL + B,” you can toggle the sidebar.

    Use the keyboard shortcut to switch between the full-width view and hide the editor.

    Multi-Select Cursor

    You can use the multi-select feature to change all instances at once if you need to change all your tags from one type to another. Use “CTRL + D” to select the tag you want to change in Linux.
    VS Code Keyboard Shortcuts for Mac, Linux & Windows
    shortcut. All instances of the selected tag will be found and highlighted; then the active cursor will be displayed, awaiting further action.

    Comment Code Block

    Commenting on blocks is another essential part of coding and one of the most common things done.Using “SHIFT + ALT + A” will comment out a code block.


    shortcut, and for a single-line use “CTRL + K + C.”

    Copy Line

    To move lines of code around your program use the “SHIFT + ALT + UP”

    or “SHIFT” + ALT + DOWN”

    shortcut keys.

    Show All Symbols

    To open a Reference view with all your code’s symbols, i.e., classes, functions, files, etc., use the “CTRL + T”
    VS Code Keyboard Shortcuts for Mac, Linux & Windows
    shortcut. This shortcut is like the global find feature for symbols.

    Shortcuts Every Developer Should Know

    Programmers create commercial or personal apps using Visual Studio Code. Focus and attention to detail are necessary for coding, a mentally taxing activity. One way that VS helps programmers save time and, in turn, boost their productivity is through shortcuts. To help you access and use the most frequently used features from the screen you’re working on, VS has set up shortcuts.

    Which shortcut do you find to be the most useful? Comment below with your thoughts on how well Visual Studio helps boost productivity.

    Previous ArticleTop 23 Best FZMovies Alternatives To Watch Latest Movies
    Next Article How to View Your Own Likes on Instagram

    Related Posts

    ESG Qualification

    Green Horizon: How ESG Qualification Can Advance Your Career

    June 4, 2025
    Deep Sleep

    Natural and Effective Deep Sleep Enhancement

    June 1, 2025
    Alfresco Development

    Alfresco Development: What Does It Mean?

    May 29, 2025

    Leave A Reply Cancel Reply

    Most Popular

    Why You Should Avoid QY-45Y3-Q8W32 Model: Hidden Pitfalls

    May 27, 2025

    How to Unblock Block Blast: The Best Puzzle Game Ever

    May 27, 2025

    Iofbodies.com Applications and Digital Body Integration’s Future

    May 26, 2025

    SeveredBytes Net Blog: Digital Independence and Tech Commentary’s Future

    May 26, 2025

    The Hidden Truth of a “Team Disquantified”: Competitive Integrity, Controversy, and Redemption

    May 26, 2025

    Install the Best Plex Plugins in 2025

    May 25, 2025
    © 2021-2023 - TechLounge. All Right Reserved.
    • Home
    • Privacy Policy
    • Get In Touch

    Type above and press Enter to search. Press Esc to cancel.

    Go to mobile version