Opening directory in Project structure while clicking the package name
Answered
I often click on package name in Java source code to open directory to quick list another files in the same package. It works while there is no test package with the same name / structure. If test package exists, IntelliJ IDEA opens this test package but in 90% of time I need to open source code package.
My question: Is there some setting how to instruct IntelliJ IDEA to open source package and not test package?
Please sign in to leave a comment.
Can't reproduce in the current IntelliJ IDEA version. Navigating from test selects the package under the test source root in the project view, navigating from the class in the source root selects the corresponding package under the source directory.
Is it possible to share a small sample project with the exact steps to reproduce? https://intellij-support.jetbrains.com/hc/articles/206869619.
Thank you Serge, you are right, it works as you mentioned in all my another projects. But in one project, where I spend majority of my time, behaves as I described. Is there some way how to "clear" this or / and get to know why IntelliJ IDEA behaves as I mentioned?
I'd recommend reporting a bug at https://youtrack.jetbrains.com/issues/IDEA with a reproducible test case.
No, I cannot reproduce it. Will help to re-create this project from VCS?
Not sure, it's not a known issue.
Delete all project IntelliJ IDEA files and re-create project from VCS has helped me and it works as expected.