IntelliJ IDEA equivalent of Eclipse "Link with Editor" - eclipse

In Eclipse you can check the "Link with Editor" option and whatever source file you are viewing in the current tab will be highlighted and have its package expanded in the Package Explorer view.
Is there something equivalent to this in IntelliJ IDEA 8.1?

At IntelliJ IDEA 12 (13, 14 and 15 from comments), it is located at the gear icon into the "Project" Tool Window, called as our mate said, Autoscroll from source
check the image
I hope this can helps someone else :)

Update (2020, eleven years later): see "Source code navigation / Locate a file in the Project tool window"
In the Project tool window, right-click the Project toolbar and, from the context menu, select Always Select Opened File.
After that IntelliJ IDEA will track the file that is currently opened in the active editor tab and locate it in the Project tool window automatically.
Original answer (2009)
That would be : Autoscroll from Source.
Navigate from a file in the Editor that gets the focus, to the corresponding node in the Project Tool Window.
Fried Hoeben comments that
you get there from the config of the project tool window.
It is not present in the general IDE settings (at least in version 12)

In version 2016.3, it's a little icon on the Project Tool Window called Scroll from Source. It's the first icon on the right see screen shot

Right click on the Project Title bar (Project view). Then select the Option "Autoscroll from Resource".

In Intellij 2019.3 community editor, it is to right-click on the Project view and check the item "Always select opened file.

Solution to IntelliJ IDEA 2022.2.4 (Community Edition)
Click on Show Options Menu and select Always Select Opened File

Related

Can't see project explorer in STM32CubeIDE [duplicate]

Suddenly my project explorer window has disappeared from Eclipse. I try selecting Windows > Show View > Project Explorer, but nothing happens. What can I do?
Try Window --> Perspective --> Reset Perspective.... Remember that your own settings, if any, will also be reset.
Try to close Eclipse IDE and reopen it and
click on window->show view->project explorer
For me it was like this...
Window->Show View->Other->General->Project Explorer
Or
Window->Open Perspective->Other->Java (default)
Open Eclipse IDE
Enter "Project Explorer" on Quick Access (Search text box).
Either select from drop-down or press Enter
Window -> Perspective -> Reset
Reset the IDE
Window -> Show View -> Project Explorer
Select Window->Show View, if it is not shown there then select other. Under General you can see Project Explorer.
If none of the above solutions work, Try Window-> New Window
I had encountered the same problem as well. The following solution helped me to get over it:
Window -> Show View -> Package Explorer.
You can use the shortcut as well. It's Alt + Shift + Q, P
Using the latest Luna upgrade.
The only solution that worked was Window >> New Window.
It's very easy to lose that critical bar.
If you are on either Eclipse or Spring tool suite then follow the below steps.
(1) Go to 'Window' on the top of the editor. Click on it
(2) Select show view. You should see an option 'Project Explorer'. Click on it.
You should be able to do it.
Close the current perspective:
Reopen it using Window -> Open perspective.
i had also encountered this issue.
.
This Solution worked for me....
windows->navigation->maximize active View or Editor(ctrl + M)
.
in the screen you can see on left side navigation menus ... now click on those buttons one by one ....you will get your solution...
Try changing the perspective to JavaEE and then check.
Not sure if this is problem but, this ticked me off for a while since I did not realize what was happening at first - maybe this will help others.
Its not really a problem, just the way Eclipse works. (I'm use to Visual studio)
Its all about Perspectives!
I set up an (existing) PHP project in eclipse(neon) and then tried to configure and run debug. A Popup "Confirm Perspective Switch" is shown - I selected "Yes", not realizing what it actually does. The "perspective" then changes and you no longer see the project explorer anywhere. You cant "open" the project explorer window from top nav > window > show view, since its no longer there (which is BS, it should show something that gives you indication of current and other "perspectives" - at least for newbie.) No where now does it give project explore options.
Now you must change the "perspective" back from debug to PHP (at least in in my case).
This can be done a couple ways, easiest is from the icons on right top right side side. One icon would be the "bug", and next to it is the PHP icon. Just click the icon "perspective" you want. The other way is from top nav bar > window > Perspective > open Perspective, then select PHP. Could they hide this any deeper?
I know this is likely second nature to those who have used eclipse for a while, but was frustrating to me (on day one) till I figured out what was going on.
Please Select window in tool bar
Move to show view
Select project explorer
applied the same method to reset the perspective, no changes appaired then I restart the Eclipse IDE which was fine then.

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.

How to Reveal in Project Navigator automatically

I want to reveal the currently edited file in the project navigator in xcode
I know about the right-click and Reveal in Project Navigator
How to highlight opened file in XCode 4 on the "Project Navigator" panel?
But it's a manual task
I want it to show EVERY TIME I switch files - like the 2 yellow arrows on top of the Eclipse IDE
I want the project navigator to always highlight the currently edited file.
Thanks,
Nur
Hum... I don't have the answer of your question and I really would like to know it.
But I know something better than right clicking, that is called : ⌘-shift-J
Your hands are on the keyboard, at least you won't have to get the mouse...
At the bottom of project navigator panel "Show only recent file" filter option is given select it to view only recent files edited

How to show the hidden toolbar of Eclipse

Eclipse has a context menu item to hide the entire toolbar of RCP.
Where is the corresponding menu item to show the hidden toolbar?
I know it should be shown if using a new workspace. However I hope find the related feature in the GUI of eclipse.
Use the Window menu, you have a "Show toolbar" option there.
I'm on Mac OS X, and one thing I always forget about is the stupid lozenge button in the upper right corner of the window. I hit this by accident and was going nuts trying to figure out where my toolbar had gone until I (experimentally) hit it again.
I tried one solution here and worked for me. If you can not reset or change something from eclipse GUI, Go to your project folder eg. "Workspace". Delete folder ".metadata". Now open eclipse again and browse "Workspace". Import your projects from the "Workspace". It will reset eclipse to default.
In eclipse oxygen version it is available under
Windows --> Appearance --> Show Toolbar

How can I get Eclipse to show .* files?

By default, Eclipse won't show my .htaccess file that I maintain in my project. It just shows an empty folder in the Package Viewer tree. How can I get it to show up? No obvious preferences.
In the package explorer, in the upper right corner of the view, there is a little down arrow. Tool tip will say view menu. From that menu, select filters
From there, uncheck .* resources.
So Package Explorer -> View Menu -> Filters -> uncheck .* resources.
With Eclipse Kepler and OS X this is a bit different:
Package Explorer -> Customize View -> Filters -> uncheck .* resources
For Project Explorer View:
1. Click on arrow(View Menu) in right corner
2. Select Customize View... item from menu
3. Uncheck *.resources checkbox under Filters tab
4. Click OK
--
Eclipse Juno
Cory is correct
# If you're using Eclipse PDT, this is done by opening up the PHP explorer view
I just spent about half an hour looking for the little arrow, until I actually looked up what the 'PHP Explorer' view is. Here is a screenshot:
I'm using 64 bit Eclipse for PHP Devleopers
Version: Helios Service Release 2
It cam with RSE..
None of the above solutions worked for me... What I did was similar to scubabble's answer, but after clicking the down arrow (view menu) in the top of the RSE package explorer I had to mouseover "Preferences" and click on "Remote Systems"
I then opened the "Remote Systems" nav tree in the left of the preferences window that came u and went to "Files"
Underneath a list of File types is a checkbox that was unchecked: "Show hidden files"
CHECK IT!
1. From Package Explorer open the Filters... dialog:
2. Then uncheck .* resources option:
On Mac:
Eclipse -> Preferences -> Remote Systems -> Files -> click Show Hidden Files.
In your package explorer, pull down the menu and select "Filters ...". You can adjust what types of files are shown/hidden there.
Looking at my Red Hat Developer Studio (approximately Eclipse 3.2), I see that the top item in the list is ".* resources" and it is excluded by default.
Spring Tool Suite 4
Version: 4.9.0.RELEASE
Build Id: 202012132054
For Mac:
In my case, I wanted to see .htaccess files, but not all the other .* resources.
In Zend Studio for Eclipse, in PHP Explorer (not Remote System Explorer), click the downward facing arrow (next to the left/right arrows).
Choose Filters.
Uncheck .* resources
In the "Name filter patterns" area, type the filenames you want to ignore.
I used:
.svn, .cvs, .DS_Store, .buildpath, .project
If using Zend Studio, same arrow, go to RSE view, click on the downward facing arrow, hit preferences, and then check show hidden files.
That did the trick for me.
If you're using Eclipse PDT, this is done by opening up the PHP explorer view, then clicking the upside-down triangle in the top-right of that window. A context window appears, and the filters option is available there. Clicking the Filters menu option opens a new window, where .* files can be unchecked, thus allowing the editing of .htaccess files.
I searched forever for this, so I'm sorta answering my own question here. I'm sure someone else will have the same problem too, so I hope this helps someone else as well.
Eclipse shows hidden files in the "Navigator" view. You can add that via Window->Show View->Navigator.
Preferences -> Remote Systems -> Files -> Show hidden files
(make sure this is checked)
Follow steps 1, 2, and 3 in the figure below: