1c.
1c.

Reputation: 4975

How do I move the panel in Visual Studio Code to the right side?

It's at the bottom by default.

For example in the following image ,panel(Section D) is at the bottom, instead I want it to move to the rightside i.e., in the area where README.md editior shown in Editor Groups(Section C). enter image description here

Image Credits: (https://code.visualstudio.com/images/codebasics_hero.png)

Upvotes: 479

Views: 321121

Answers (21)

jaquinocode
jaquinocode

Reputation: 962

screenshot of vscode with terminal on the right side

This answer is for people that just want their terminal on the right side (shown above), and don't care about the panel.

  1. Show vscode's Command Palette with keyboard shortcut command + shift + p or ctrl + shift + p
  2. Type in "terminal editor"
  3. Choose option that says Terminal: Create New Terminal in Editor Area to the Side

Upvotes: 6

weiya ou
weiya ou

Reputation: 4336

The panel opens on the right by default.

Note that this setting needs to be in a new folder to take effect.

If VSCode has opened the folder before, the panel will still use the old location.

"workbench.panel.defaultLocation": "right",

Upvotes: 0

Mark
Mark

Reputation: 182821

With v1.64.2 they have brought back the command View: Move Panel Right (or Left). You can put the Panel (which typically has the Terminal/Output/etc. in it) as a vertical column on the left or right side - next to the Side Bar or Side Panel if you wish.


They are working on a fix for the change wrought by v1.64, should be in Insiders v1.65 02/08/2022.

Just use the View: Move Panel Right/Left/Bottom command from the Command Palette.


[Outdated answer, see above.]

As of Stable v1.64 the setting "Wokbench.panel.defaultLocation": "right" will no longer work.

Replacing Panel Location

As mentioned above, the new Side Panel provides similar functionality as moving the Panel to the left or right, yet improves on this by not forcing the move of the original panel. Along with view drag and drop between panels, the new Side Panel is replacing the option to move the bottom Panel.

In light of that, we have deprecated the workbench.panel.defaultLocation setting as well as the Move Panel... commands in favor of similar commands Move Views From Panel To Side Panel (workbench.action.movePanelToSidePanel) and Move Views From Side Panel To Panel (workbench.action.moveSidePanelToPanel). The old commands will remap to the appropriate new command providing the similiar behavior. Though, we recommend updating your keybindings to the new commands.

panel location

This is in favor of using the new Side Panel, which can be in addition to the previous Side Bar (where the Explorer, SCM views traditionally are) and the Panel (where Terminal, Output, etc. traditionally are). So you can have 3 panel-types of views. See more at the v1.64 Release Notes: https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_64.md#new-side-panel

Upvotes: 7

Denis Howe
Denis Howe

Reputation: 2421

By default, ⌘J toggles the (bottom) panel. If all your views are on the side panel, make ⌘J toggle the side panel by doing:

Code > Preferences > Keyboard Shortcuts > "Command+J" > Right-click > Remove Keybinding

Code > Preferences > Keyboard Shortcuts > View: Toggle Side Panel > Add Keybinding > ⌘J

Upvotes: 1

saditya
saditya

Reputation: 93

Go to Command Palette from the wheel icon on the bottom left --> search and enter "settings" menu --> search "panel" in the search bar --> Select Default location as "right" instead of the "bottom". Reload VS Code, and you're good to go.

Upvotes: 1

Manish
Manish

Reputation: 531

In version 1.55.2.

Go to View --> Appearance --> Move Panel Rightenter image description here

Upvotes: 38

user8079583
user8079583

Reputation:

Click menu option View > Appearance > Move to Side Bar Right. Once side bar moves to right, option "Move Side Bar Right" changes to "Move to Side Bar Left".

Upvotes: 37

Stefano
Stefano

Reputation: 1856

Click menu option View > Appearance > Move Side Bar Right or in settings.json:

"workbench.panel.defaultLocation": "right"

Upvotes: 64

Dheeraj Palagiri
Dheeraj Palagiri

Reputation: 1879

As sample as this from the GUI. View->Appearance->Move Side Bar Right

enter image description here

Upvotes: 2

mangu
mangu

Reputation: 11

Go to view, then appearence. Then select move panel bottom.

Upvotes: 1

matrix
matrix

Reputation: 3100

"Wokbench.panel.defaultLocation": "right"

Open settings using CTRL+., search for terminal and you should see this setting at the top. From the drop down below the settings explanation, choose right. See the screenshot below.

enter image description here

Upvotes: 2

Dinesh Jinjala
Dinesh Jinjala

Reputation: 29

"workbench.panel.defaultLocation": "right",

Upvotes: 1

dcastro
dcastro

Reputation: 68750

As of October 2018 (version 1.29) the button in @mvvijesh's answer no longer exists.

You now have 2 options. Right click the panel's toolbar (nowhere else on the panel will work) and choose "move panel right/bottom":

Or choose "View: Toggle Panel Position" from the command palette.

Source: VSCode update notes: https://code.visualstudio.com/updates/v1_29#_panel-position-button-to-context-menu

Upvotes: 973

VonC
VonC

Reputation: 1329262

VSCode 1.42 (January 2020) introduces:

Panel on the left/right

The panel can now be moved to the left side of the editor with the setting:

"workbench.panel.defaultLocation": "left"

This removes the command View: Toggle Panel Position (workbench.action.togglePanelPosition) in favor of the following new commands:

  • View: Move Panel Left (workbench.action.positionPanelLeft)
  • View: Move Panel Right (workbench.action.positionPanelRight)
  • View: Move Panel To Bottom (workbench.action.positionPanelBottom)

Upvotes: 12

sh6210
sh6210

Reputation: 4540

Hope this will help someone.

-> open to keyboard shortcut

-> search for "workbench.action.togglePanelPosition"

-> assign your desired shortcut

I've assigned keybinding "cmd+`"

{
  "key": "cmd+`",
  "command": "workbench.action.togglePanelPosition"
}

now I can toggle the terminal by pressing "cmd + `"

Upvotes: 9

NickersF
NickersF

Reputation: 371

As of June 2019 this setting can be found through searching 'Panel' - if you want to change the default there is an option for it as shown in the screenshot:enter image description here

Upvotes: 15

mvvijesh
mvvijesh

Reputation: 1262

I'm using Visual Studio Code v1.24.0 on a Mac.

By default, the Panel will appear on the bottom (You can change the default as well. Please refer to @Forres' answer: Moving Panel in Visual Studio Code to right side)

Here's the bottom/right toggle button for VS Code Panel:

enter image description here

Once I click on this button, the Panel moves to the right.

enter image description here

Moving it back is a little tricky though. As you can see, some of the buttons are hidden. This is because the width of the panel when it's aligned right is too small. We need to expand the column to see all the buttons.

This is how it'll look upon expansion:

enter image description here

Now, if you want to move the Panel back to the bottom, click on the toggle bottom/top button again.

Upvotes: 113

Mel Michael
Mel Michael

Reputation: 141

For Visual Studio Code v1.31.1, you can toggle the panel session via the View menu.

  • Go to the View Menu.
  • Via the Appearance option, click on Toggle Panel Position

enter image description here

Upvotes: 11

pulankit
pulankit

Reputation: 565

You can do the same in insider's edition, There is an option on right top corner to switch to the panel to sidebar https://code.visualstudio.com/insiders/

terminal at the bottom side terminal in the bottom side

terminal at the right side terminal in the right side

Upvotes: 6

Forres
Forres

Reputation: 2155

For people looking for an answer (on how to move the side panel):

You can press

ctrl + , (Or cmd + , on OSX)

and add the following option to your user settings JSON file:

"workbench.sideBar.location": "right"

SideBar on the left

Upvotes: 177

Nickos
Nickos

Reputation: 101

I don't know since which version it change but the 1.11.2 has an option in View tab which can change the left bar to the right and vice versa

Upvotes: 3

Related Questions