Locate current file in IntelliJ
Alt + F1 (or Alt + Shift + 1 for linux) almost does what you want. You need to hit Enter afterwards as IDEA allows multiple “targets” for navigation (project structure, file structure etc). (Note you can also set AutoScroll to Source and AutoScroll from source using the two “boxes with arrows” buttons above the … Read more