Reputation: 18572
I just want to know if it is possible at Intellij open Project view
for class which is currently opened. Using short cut.
Steps:
Ctrl
+N
) => type String
String
class from JDK. It has next looking:Alt
+1
=> It will open Project view
where it was active last time.I tried to find it at internet but without success.
Any suggestions?
Upvotes: 2
Views: 1249
Reputation: 3949
This shortcut worked for me on a Linux machine:
with your cursor on the file press alt
shift
1
Upvotes: 0
Reputation: 147
Replying to an old thread, but may help someone in the future. I am using IntelliJ 2020.2 and now I can see a keymap for the 'Select Opened File' (earlier 'Scroll from Source') button mentioned by @Bohuslav Burghardt. It's
Alt + F1 and then 1 (submenu item 1)
Upvotes: 1
Reputation: 34766
You can click the settings icon in the project view and check Autoscroll from source. That way any class (or any file for that matter) you open will be automatically selected in the project view.
or if you don't want this to happen always you can click this icon to naviage to the currently opened item in the project view:
Unfortunately I don't see any command in keymap section to bind this action to a keyboard shortcut.
Upvotes: 3