Eclipse - Avoid the scrolling behaviour upon closing a file - eclipse

When you open a file in a project and then close it the Package Explorer will scroll to a file in another project if there is a file open there. Is there a way to stop this behaviour?

It sounds like you have the 'Link with Editor' option toggled on. This links the Package Explorer and the editor, which can cause the behavior you are seeing.
This option shows up in the Package Explorer header area as a button with arrows pointing right and left - if you hover over it, it'll say 'Link with Editor'. Click it once to turn it off, and it should stop automatically scrolling the Package Explorer view.

Related

VS Code editor, unlinking explorer pane and editor tabs

When I click on an editor tab the focus in the explorer pane shifts to the file in question. This seems pointless to me. Can I stop this from happening? Obviously I want to continue being able to click on a file in the explorer pane and for the relevant tab to open or come up in the editor.
You may be wondering why I want this. It's because one of my open files is way down the explorer pane list and the files I want to see in the pane are up at the top of the list.

How to remove eclipse project explorer above the editor?

When I was working on a project for my program fundimentals class I somehow got this miniature project explorer above the editor in eclipse, I have tried to look for a solution on google but I don't think i'm asking the right question so this was my final place to go.
Here is a screenshot of my eclipse:
That is the breadcrumb view.
To toggle it on/off:
Shift+Alt+B (by default on Linux)
Right click in editor and choose Show in breadcrumb
Ctrl+3 to open up quick access (or click in quick access) and type breadcrumb and select the toggle command as in this screenshot:
Click this icon in the tool bar
Yeah that is annoying, the workspace is cluttered enough. I was trying to simply minimize the explorer area so I could see the whole line of code and I eneded up activating this breadcrumb mode. Looks like:
FILES/PREFERENCES/SETTINGS/WORKBENCH/BREADCRUMBS/DISABLE

What is the IntelliJ equivalent from Eclipse, show file in the package explorer view

I am more familiar in Eclipse and need the IntelliJ equivalent. In Eclipse, I could open a java class, right click, show file in package explorer and it would highlight the file on the left. What is the IntelliJ equivalent.
You can highlight a file you have open in the editor in a number of views using the Select In...menu that can be opened using ALT-F1 when the editor window has the cursor.
The most usual ones (Project/Packages) are found under the menu opened by ALT-F1 and then right arrow.
You can also double click the circle/cross button ontop of the Project view
it will show you the current active file in the project structure
You can turn on Autoscroll from source in Project Tool Window so that the file/class to the left is scrolled to as soon as you open a file for edit.
If this option is on, IntelliJ IDEA automatically navigates from a file in the editor to the corresponding node (file, class, field, method, etc.) in the Project tool window.
Note that selecting this option makes the Scroll to Source button unavailable.
It is called "select in project view".
You'd better edit your keymap ! (alt+F1 right arrow is not very efficient...)
file > settings > keymap > select in project view : alt+E for example
You can press Alt-Home, it goes to the navigation bar.
Go to or select the package by pressing left arrow.
Press F4 now to see it in the project view.

pydev: package explorer disappears when file is openend

Silly question, but I don't know what to do:
My view in Eclipse pydev has changed;
Don't know what I did It used to be that the Pydev package explorer would appear on the left and then whatever file I selected would appear on the right, in the editor area. Instead, Pydev now opens a blank window.
I can make the Pydev package explorer appear by selecting it from the little icon on the lower left. However, when I then click on a file, the file opens, but the explorer disappears. Very annoying.
You probably made the package explorer work as a 'fast view'. You can do the following: Ctrl+F7 until you reach it (this keybinding should allow you to pass through the opened views), then alt+- (which should open the view menu) and deselect the 'fast view'.

package explorer is broken

this is what I`ve done
I clicked on a project with right button and I`ve selected open in new window. I had 2 windows. First I've closed the primary one, then the new one. After that every time when I run eclipse the project that I've selected to open in new window was the default one. My package explorer every time was in it and I had to click back. I just deleted this project and now I can't navigate in package explorer. It is still set to this project but I can't go back. What can I do ? How can I select the basic package explorer view ?
There should be an Up one level or a Back button enabled on the Package explorer view toolbar - I am not talking about the main toolbars similar buttons but one just under the view header. These buttons shall allow you to return to the original level with multiple projects visible.
This is the Up One Level button that Zoltan is referring to:
Symptom:
The package explorer dialog looks as if you have drilled down into an end node but the dialog is blank and there is no "Up One Level"/"Back Button" to click.
Solution:
Ensure eclipse is not running
Delete the following file:
workspace/.metadata/.plugins/org.eclipse.ui.workbench/workbench.xml
Start Eclipse
The workbench.xml file contains settings for the state of the package explorer among other things. I suspect that the package explorer settings get corrupted somehow.
Top right there is ViewMenu option menu (triangle downside oriented) - try some options there, or click project explorer tab(top left) and try refresh etc. It is hard to see what exactly happened to you.
In Eclipse, Window → Reset Perspective...