Rearranging different views/windows in eclipse - eclipse

I am wondering if it's possible to have a "panel"/view on both sides of my editor in eclipse?
For example, package explorer on the left, editor in the middle (that's the default arrangement) and then to add the debug view on the right. I don't want to split the editor horizontally or vertically but rather to have a whole new panel on the right for the debug.

yes, definitely you can,
first , you have to close whichever window is on the right side, except the editor and then drag the console to the right.I hope this is what you were looking for.

Related

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.

How do you hide the sidebars in Eclipse so you can just see the code?

I'm new to Eclipse. One of the things I like most about it is the fantastic indexing, and the symbols/function outline at the right. One of the things I like least about it is how small the code area is due to all of the side-bars (one each in Eclipse CDT at the left, right, and bottom makes the code area quite small).
Is there a quick way to toggle between hiding and showing the sidebars?
After some tinkering around I accidentally discovered it! Just double-click on your open file-name tab and it will maximize to full-screen. Double-click again to toggle it back to your normal "perspective". This applies to the left, right, and bottom sidebars too: just double-click on any of their tabs and they will maximize. Do it again to toggle back to normal size.

How can I scroll left and right in Eclipse editor with the keyboard without moving the cursor?

To scroll within the Eclipse editor without moving the cursor up and down one can use CTRL+Down or CTRL+Up. But what about left and right?
It is not possible. If you search keys in Eclipse's Preferences, you will find out that you only have Scroll up and Scroll down that you can set hotkeys on.
My recommendation would be changing the maximum line length in the editor.
Make your code shorter. After all, looooong lines of code are not so readable.
Also, resize your editor area. If you feel strangled, remove the Outline, TaskList, and Build view from your right side of Eclipse, and enlarge the editor.

In Eclipse, can I view the files I currently have open in a vertical stack instead of a horizontal one?

I would find it much easier if the tabs show which files are in the Editor were stacked vertically rather than horizontally. Stacked horizontally means that you run out of room to display file names very fast and makes switching between files time consuming.
Is there an option or a plugin to display the files vertically? (Similar to navigator, but for open files instead of project files) I can't seem to find one.
tabs can not be stacked vertically. However, CTRL+E (⌘+E on mac) might give you some relief.
Eclipse 3.8
CTRL+G brings up an Editors dialog as shown in this screen capture:
Eclipse 4.3
CTRL+E brings up the pop-up shown in this screen capture:
With ctrl+shift+e you can open an extra window that show you the open tabs vertically.
EditorViewer is very good
The project is dead, but it works fine with Eclipse 3.7. Just drop the .jar file in the dropins folder
http://sourceforge.net/projects/editorviewer/?source=dlp
Another command is CTRL+F6 not entirely like the other ones but great to switch between your two most recent tabs. And you also get a list of open tabs like the other examples.
you can always drag windows over each other to tile them vertically but if you see a ">>" at the end of the tabs clicking on it gives a file list which are open.
None that I know of, but there are some other tipps to make life a little easier:
1) Use Mylyn, which filters the Explorer-Views so only relevant files are shown there.
2) Have a look at "Extended VS Presentation" http://andrei.gmxhome.de/skins/index.html . This little plugin adds some useful features to reduce waste of screenspace. With it you can hide the file extension in editor tabs or limit the size of each tab and reduce the padding. Then you can remove the X and close tabs with a middle click. Each just a small saving, but they add up.
For newer versions of Eclipse, there is a plugin Open Editors which adds a view listing all open editors.
Finally a true relief!
https://sourceforge.net/projects/editorviewer/?source=dlp
Install dragging the "install" button from
https://marketplace.eclipse.org/content/vertical-tab-list
to show it
"window / show view / browsing / editors list"
On its internal menu I selected too: Sort by ext+name
Now I just need a way to hide the top tabs list and it will become perfect!