How to make Eclipse automatically show selected file in explorer? - eclipse

In one of my projects, I guess I enabled a setting somewhere that I didn't realize how much I use.
Whenever I click into the main editor, it brings the package explorer to the file automatically and scrolls to it. I can't seem to find this setting anywhere in preferences, does anyone know what it is called?

It's called "Link with Editor", the two-way arrow icon you'll find in the toolbars of various Views.

Related

How do I stop VSCode from revealing a file in the sidebar as soon as I click on it in "Source Control => Changes"

When I have a multiple file with changes in VSCode I often want to go trough the changes without staging.
I cannot do this because as soon as I click on one file with changes in "Source Control => Changes" the file is revealed in the sidebar and I have to navigate back to "Source Control" to review the changes of another file. In the past this wasn't the case. In order to open the file regularly (without diff) I could manually go to the Explorer and the file was selected.
When files are staged I can click on them and they will not be revealed in the sidebar. This behavior is what I would also like to have for files that are not staged.
What is causing this behavior (I use VSCode v1.74.2)? In the past this wasn't the case.
Update: This behavior is caused by an extension I need (Sigasi). They made an update and for some reason this caused the described unwanted behavior.
Hello from the Sigasi support department. ;)
The Sigasi extension for VS Code comes with a dedicated Project View to bring some useful Eclipse File System features to our VS Code extension.
One of the features this Project View offers, is to link the Project View with the editor in focus. This allows to quickly spot where you are in the project file hierarchy.
This feature can easily be disabled by going to the Project View and clicking the icon that controls the link with the editor. I'm linking a screenshot showing the link with editor setting.
It seems this feature at the moment is more intrusive than intended. We plan to adjust this feature so that it isn't active if the Project View is not visible or collapsed.

How do I expand Project Explorer to the bottom of my eclipse screen?

I recently had to delete all my projects in eclipse and re-import them, and it messed up the view organization I had (I had never realized I could save a view until now). I want to use the Team Synchronizing Perspective in Eclipse, but I want the Project Explorer section to go to the bottom of the screen.
for example, in the Java perspective,
The package explorer goes to the bottom of the screen. but on the Team Sync Perspective, that I want to stay on, I can't get the Project explorer view to go to the bottom of the screen (and I know one is the package and one is the project explorer, I tried adding package explorer to the sync perspective and it also doesn't show up how I want).
Team Sync Perspective:
Does anyone know how to do what I'm asking? I've googled plenty and can't find the answer. I'm assuming it's simple and I just can't find the steps...
See this animated gif to rearrange views in a perspective. Left click on view's title bar and drag and drop the view wherever you need it.
Refer this help guide

eclipse navigate showing java source in directory hierachy instead of package

Due to some reason I found, when displaying the source ,my navigator changed from the right side (preferred) to the left side , which need more clicks to access the source file. I remembered that I did accept some chance unconsciously which result in this unpleasant change but can not find a way go back...
Thanks for your help!
Your best friend in eclipse is CTRL+3 (quick access), press that and then search for what you want, try perspectives and views, see below.
Perspectives
Check what perspective you are in (now). In the top right of eclipse there is a list of perspectives. Sometimes when you carry out an action it asks you if you want to change perspectives. This can change your views/layouts. You might want the Java or Java EE perspective.
views
There are multiple views of your files. What is the name of the tab where ComputeBench is showing up? Try opening the "Project Explorer" or the "Package Explorer" views.

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...

How do i configure the right click menu in the 'project explorer' view?

I installed a fresh eclipse and i have a problem : when i right click somewhere in the project explorer view, the menu is missing some links and some that i dont' want to see are there.
How can i modify that ?
Bonus question : i can't rename files, folders, classes, nothing. The 'rename' link in the toolbar (it doesn't appear in the right click menu !) is disabled.
Thanks
I can only answer your bonus question. Rename in Eclipse is only available in Navigator view. But you can use Refactor->Rename in other views as well. The bahavior is slighly different from normal Rename but most of the time, it is what you wanted.