Create HypeLink to a module
Answered
In a toolwindow similar to the Event Log, I need to print a link to a module. Is there any way to point to the module root using an HyperLink?
Please sign in to leave a comment.
com.intellij.openapi.roots.ui.configuration.ProjectSettingsService#openModuleSettings
What/where do you want to open the module root?
What would be the right user experience? I now jump to the iml file, but it doesn't look correct.
Ideally, I think it should jump at the Project Structure tree node where the module name is displayed.
That will open the module settings. I was thinking more about opening the module in the Project Tree. Like in the following screenshot, where I selected intellij.jvm.analysis module
Sorry, misunderstood
This snippet will select in currently selected Project View tab, pass in fixed ID if you always want "Project" tab
Amazing, thanks a lot!