Can I have two side panels, one left and one right? - visual-studio-code

I have a nice wide screen, and in VS Code I would like some more room for both my file explorer and my code outline. So it would be nice if I could have two panels with in one the explorer and in the other the outline. Is this possible?

See https://stackoverflow.com/a/69329503/836330 This is in Stable v1.64.
Then View/Appearance/Show Side Panel or use the icon in the upper right as shown in the demo. That will open up a second side panel (on the opposite side of your Side Bar, the Side Bar is the panel which typically holds the Explorer view for example).
You can drag various views like the Outline view into this second "Side Panel".

Related

VSCode suddenly opening panel at the bottom of the screen (ignoring settings)

I don't understand the change of the panel not being where it's supposed to be.
Suddenly, pressing command+J opens the panel at the bottom of the screen, instead of to the right. I have not changed anything in my settings, although this error message seems to have turned up in my settings since the last update;
Workbench › Panel: Default Location
With the introduction of the side panel, the panel position is no
longer able to be moved in favor of moving view containers between
the panels.
Googling this does not give me any results. What does it mean?! What side panel, if not THE side panel (which is now a bottom panel) are they talking about?
See https://github.com/microsoft/vscode/issues/141349#issuecomment-1033046397 for an update on the changes made in v1.64 on this issue and inclusion in the recovery build soon.
The recovery build is out:
In v1.64.2 which hasbeen released. Put the Side Bar on the right and use the command View: Move Panel Right (or Left or Bottom). In one workspace with the setting Workbench > Panel: Default Location : right it put the Panel to the right of the Side Bar (so far right) but triggering the command fixed that. Editor | Terminal (Panel) | Side Bar. And working if put on the left too.
With the Recovey Build mentioned above, the following answer is largely "deprecated". I'll leave it for historical purposes.
This behaviour, of moving the Panel to the bottom despite your panelLocation setting is the result of the new Side Panel coming to Stable v1.64. The olde workbench.panel.defaultLocation setting has been deprecated and the Panel will remain at the bottom despite the defaultLocation setting. [Apparently, "deprecated" in this case means ignored.]
But, now you can have the traditional Side Bar on one side, the new Side Panel on the opposite side and the Panel on the bottom. Or turn off any of those.
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.
See more here: Release Notes: New Side Panel

VS Code - show sidebar or panel exclusively

Is it possible to configure VS Code to hide Side Bar when Panel is shown and hide Panel when Side Bar is shown? I work on a laptop so the screen estate is at premium. Thus I would like to have both Side Bar and Panel on the right (so Editor can use the full screen height) but never show them at the same time as the triple Editor/Panel/SideBar does not fit the screen.
Alternatively it will be nice to show both Panel and Sidebar on the right, but with Panel below Side Bar, but that I guess is just not supported by VS Code.

How to detach Outline from Explorer

Problem: Detaching the Outline section from Explorer and moving it to the right side.
Tried: right-clicking, changing the settings - cannot find where and how the Outline section be detached from Explorer.
Question: is it possible to detach the Outline Panel from Explorer Panel?
Is there another extension, which the same functionality as Outline, which could be placed on the right side?
Thank you!
This should be supported directly in VSCode 1.64 (Jan. 2022), with the new side panel.
New Side Panel
This milestone, we introduce the Side Panel, a new surface in the workbench to house views from the Side Bar or the bottom Panel appearing opposite the Side Bar.
Unlike the historical ability to move the bottom Panel to the left or the right of the editor, the new Side Panel works in addition to the bottom Panel so you can see more sets of views at once.
To use the Side Panel, you'll need to move some views over to it.
Based on one of our most upvoted feature requests, you might want to move Outline from the Side Bar to Side Panel.
You can do this by dragging and dropping the view into the Side Panel.
If the Side Panel is not open, just like the bottom Panel, dragging a view to the edge of the editor area, will pop it open.
Alternatively, you can use the Move View command for something more keyboard friendly.
Moving Outline View to the Side Panel:
Yes you can, click on the Outline Title Bar and you can move it to any other panel, even the bottom Problems/Terminal panel.
You don't need any special extension for it. Almost all panels can be moved around in VSCode
You cannot have a Floating Window however.
You also Cannot have Two Sidebars
If you want to have the sidebar to the right go to View - Appearance - Move Side Bar Right
As of now, no you cannot have two sidebars, this is the issue tracking that feature.
I can suggest an alternative, you can move the outline to the bottom panel, where the terminal is so that you can have both at the same time but just not as a sidebar.
like this:
or like this but attaching two Bottom Panel tabs together.
Here is a Demo on how to do it
So after a lot of searching, I finally came up with my own solution. Apologies in advance for the poor screenshot quality. I used Microsoft's Steps Recording not realizing the image compression would be so poor.
First, open up a new terminal (Ctrl+Shift+`)
Make sure that the terminal tab is active in the panel. Right click the terminal name on the right-hand side and select "Move into editor area.
"
You can then right-click the now-tabbed Terminal in your editor space and select "Split down."
Your editor should look like the image below. However, we're not done yet! Here's where the magic happens. Open another terminal.
Things will look weird but this is going to work.
Click the "Outline" header in the sidebar and drag it into the bottom terminal panel:
Sidebar > (Outline) > Terminal Panel
Next, right-click on the tab bar of the bottom panel and select "Move Panel Right"
Et voila! You should how have a sidebar on the left, and Outline on the right, and a Terminal on the bottom!

Is it possible to duplicate the visual code side bar?

I don't know a way to duplicate the visual code side bar. I would find it useful to be able to open different views at the same time as it happens in eclipse Theila (both share same source code)
Eclipse Theila
See my newer answer at https://stackoverflow.com/a/69329503/836330
You can put another panel on the right, in addition to the Side Bar and Panel. And then drag various views into it.
Put the Panel on the right. Right-click on one of the headers, like "Terminal" and select `Move Panel Right".
Drag your "Outline" header into that right Panel.

Eclipse IDE split bottom panel to two like in visual studio

I have this bottom panel with many "Views" (tabs like "Console" and "Debug").
They all reside as tabs next to each other in the same container.
I'd like to split it to two - it's possible in Visual Studio.
Here's how it looks like now:
There's a lot of space wasted in the right side as you can see and it would make it a lot easier for me if I could just split this container/panel to two, so some tabs in the left side and some in the right.
For example, I'd like to split the above like this:
Left:
Console
Development Mode
Breakpoints
Servers
Right:
Debug
Variables
Search
Simply grab one of the tabs (like Servers) and drag it towards the left hand side of the stack. You should see rectangle outlines of where the view will go when you drop it. Once you've created another stack to the left, simply drag the other views you want over there and drop them (next to the Servers tab).