Move the Sidebar or Terminal to the Right in VS Code

avatar
Borislav Hadzhiev

Last updated: Apr 6, 2024
4 min

banner

# Table of Contents

  1. Move the Sidebar to the Right in VS Code
  2. Move the Terminal to the Right in Visual Studio Code

Note: if you need to move the terminal to the right, click on the second subheading.

# Move the Sidebar to the Right in VS Code

The easiest way to move the sidebar to the right is to right-click on the Activity Bar to the right of Explorer and select Move Primary Side Bar Right.

right click move sidebar right

Here is a short clip that demonstrates the process.

move sidebar to the right

# Move the Sidebar to the Right using the Top Menu

You can also use the top menu.

  1. Click on View in the top menu and then hover over Appearance.
Note that you might have to press Alt to show the top menu on Windows and Linux.
  1. Click on Move Primary Side Bar Right.

move sidebar to the right using the top menu

# Using the Customize Layout icon to move the Sidebar to the Right

You can also use the Customize Layout... command in the top right corner to move the sidebar to the right.

  1. Click on the Customize Layout... icon.
  2. Click on the Primary Side Bar label.
  3. Click Right.

move primary sidebar right using customize layout

Here is a short click that demonstrates the process.

move primary sidebar right using customize layout

# Move the Sidebar to the Right using the Command Palette

You can also use the Command Palette.

  1. Press:
  • Ctrl + Shift + P on Windows and Linux.
  • Command + Shift + P on macOS.
Note: you can also press F1 to open the Command Palette.
  1. Type toggle sidebar and select View: Toggle Primary Side Bar Position.

toggle primary sidebar position

The command moves the sidebar to the right or left depending on its current position.

# Moving the Sidebar to the Right via your settings

You can also use your settings to change the position of the sidebar.

  1. Press Ctrl + Shift + P (or Command + Shift + P on macOS).
Note: you can also press F1 to open the Command Palette.
  1. Type user settings and select Preferences: Open User Settings.

open user settings

You can also open the settings screen by pressing Ctrl + , on Windows and Linux or Cmd + , on macOS.

  1. Type sidebar location and select right from the dropdown menu.

change sidebar location in settings

# Setting a keyboard shortcut to toggle the Sidebar's position

If you need to set a keyboard shortcut to toggle the Sidebar's position:

  1. Press:
  • Ctrl + Shift + P on Windows and Linux.
  • Command + Shift + P on macOS.
Note: you can also press F1 to open the Command Palette.
  1. Type Keyboard Shortcuts and select Preferences: Open Keyboard Shortcuts.

preferences open keyboard shortcuts

  1. Search for toggle primary.

  2. Double-click on the View: Toggle Primary Side Bar Position to set up a keyboard shortcut and hit Enter to confirm.

set keyboard shortcut toggle sidebar position

# Move the Terminal to the Right in Visual Studio Code

If you need to move the terminal to the right:

  1. Open your terminal with Ctrl + ` (backtick).
  2. Right-click on the TERMINAL label.
  3. Hover over Panel Position and select Right.

move terminal to right

Here is a short clip that demonstrates the process.

move terminal to the right

The same approach can be used to move the terminal to the left or the bottom.

# Move the Terminal to the Right via the Top Menu

You can also use the top menu to achieve the same result.

  1. Click on View in the top menu.
Note that you might have to press Alt to show the top menu on Windows and Linux.
  1. Hover over Appearance and then Panel Position.

  2. Select Right.

move terminal to right via top menu

# Move the Terminal to the Right via the Command Palette

You can also use the Command Palette to move the terminal to the right.

  1. Press:
  • Ctrl + Shift + P on Windows and Linux.
  • Command + Shift + P on macOS.
Note: you can also press F1 to open the Command Palette.
  1. Type move panel and select View: Move Panel Right.

move terminal right using command palette

# Additional Resources

You can learn more about the related topics by checking out the following tutorials:

I wrote a book in which I share everything I know about how to become a better, more efficient programmer.
book cover
You can use the search field on my Home Page to filter through all of my articles.