catch32
catch32

Reputation: 18572

Intellij shortcut - how to open at project view current class?

I just want to know if it is possible at Intellij open Project view for class which is currently opened. Using short cut.

Steps:

enter image description here

enter image description here

I tried to find it at internet but without success.

Any suggestions?

Upvotes: 2

Views: 1249

Answers (3)

Alferd Nobel
Alferd Nobel

Reputation: 3949

This shortcut worked for me on a Linux machine: with your cursor on the file press alt shift 1

enter image description here

Upvotes: 0

nitkart
nitkart

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)

enter image description here

Upvotes: 1

Bohuslav Burghardt
Bohuslav Burghardt

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.

enter image description here

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:

enter image description here

Unfortunately I don't see any command in keymap section to bind this action to a keyboard shortcut.

Upvotes: 3

Related Questions