Snap window to appear adjacent to other tabs - eclipse

In below screenshot "package explorer" overlays "servers" tab. How can I position it so that it appears adjacent to "Server" tab instead of overlaying it ?

You've "detached" the Package Explorer panel into a separate top-level window. You need to drag its tab back into the main container window and Eclipse will show guidelines as you drag it around to indicate where it will be placed when you release the drag click (drop it).

Dragging the entire tab did not work for me. I needed to hover the mouse pointer of the text for the tab in question and drag it to the new location.
For example hover the pointer over the "JUnit" text within the tab before dragging :

Related

How to restore VS Code Sidebar settings?

VS Code comes with a Source Control tab on the sidebar, I think I accidentally dragged the icon into the 'Explorer' tab icon, now all the source control boxes are dragged in here and the folder + files list which used to be the default in the Explorer tab is now pushed to the bottom.
How may I undo this change?
In general, if you have moved some view to a place, called a ViewContainer, like the Side Bar or Side Panel or Panel and you can't figure out how to get back to the default location for that view use the command
View: Reset View Locations to reset all the views to their default locations.

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!

Move terminal panel to bottom option gone? (VSCode)

Just updated VSCode to 1.29.0 on macOS 10.12.6 and it looks like this option to move the terminal to the bottom of VSCode (and then back right) is no more. Is that on purpose? Did it move to a specific setting? I was using that feature quite a lot.
Here goes a screenshot:
EDIT:
Can still move by context menu:
EDIT for v1.42 (January 2020 release):
Panel on the left
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)
See https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_42.md#panel-on-the-left
[Previous answer - see above for later info:]
See release notes on panel position button.
Panel position button to context menu
In order to preserve horizontal space and reduce clutter, we removed
the toggle Panel position button (Move to Right, Move to Bottom) from
the Panel title area. The action is now available in the Panel title
area context menu and also in View > Appearance > Toggle Panel
Position main menu. Another reason for removing this button was that
we believe users set their layout once and don't normally toggle back
and forth.
There is also this setting to "permanently" change the panel location:
workbench.panel.defaultLocation
But to move it on the fly now you use the context menu.
Apparently people just weren't using it enough to warrant the screen space.
Just Click through the following:
View > Appearance > Move Panel Right
If you don't see the panel at the bottom,
View > Appearance > Toggle Panel Position
Now drag and drop the terminal icon from the sidebar (left or right side) to panel bar (bottom)

Docking a detached view with Eclipse

When I drag a view outside of the Workbench window, the view becomes a detached view.
The Eclipse help says (Workbench User Guide -> Tasks -> Working with views and editors -> Detaching views and editors): "To restore the view to be shown inside of the Workbench window, drag the view tab into the Workbench window."
With my configuration (Windows 7; 2 screens; pushing the maximise button maximises Eclipse in one of the two screens) this does not work.
I have to use "Windows -> Restore Perspective ..." to get the view back inside the Workbench.
Is there an other way for reattaching a detached view?
As per njol's answer above, once you have your tab detached (showing as floating outside of your Eclipse IDE), simply click on the tab (not on the title of detached tab window) and drag. Then you will see mouse cursor change showing you where you can drop it to attach the tab to IDE.
You have to move each tab from the detached views window to the side of a tab in the main window. (The fact that we should move it to the side of another tab was a detail that took me a while to grasp.) A GIF would help:
Note the little green vertical line that appears beside the "Servers" tab — it indicates you've dragged the tab in the right place:
* The red circle only appears when I am pressing the mouse button. It was added by an external program to highlight when the mouse is pressed; it will not appear to you.
From #zvezda's comment above,
"Windows -> Reset Perspective ..."
was the only method that worked for me (using Mars on Fedora 22).

Eclipse Outline view is hiding code

I'm using the Kepler CDT release (4.3.1) of Eclipse. When I click on anything in the Outline view, the corresponding editor view is reduced to showing just that item. If I click on a variable, I get a single line with just that variable. The Edit->Expand Selection options are all dimmed out. Hitting Shift-Alt-Up Arrow just moves me up to the previous item in the outline view. If I change editor tabs and come back then the Expand Selection options enable and I can manually hit Shift-Alt-Up Arrow a number of times to make the entire file visible again but clicking on anything in the outline view again will just reduce the view. Is there some new setting in Kepler that will make outline stop doing this?
Turns out the feature for Show Source of Selected Element Only was turned on. In Kepler the toolbar button for this is not visible. Even searching under quick access doesn't turn it up so it's somewhat of a puzzle how it could have been turned on. I actually thought maybe it had been removed from Kepler.
In the Customize Perspective dialog under the Tool Bar Visibility tab. In the Tool Bar Structure section I opened the area for Editor Presentation. I noticed there was actually a check next to the box for Show Source of Selected Element Only. However, it wasn't visible in the toolbar (a bug I've seen before in Eclipse) so I unchecked it and checked it. Then I exited the dialog. Now the button showed up on the toolbar. I then toggled the feature on and then off. Now clicking in the outline view works correctly.just moves to the correct spot.