Make certain string as hyperlink in IDE

Answered

Hello,

I am developing a plugin, where I have a test with metadata as shown below:

@TmsLink("Task_DA_113")

 I would like to make the text "Task_DA_113" a hyperlink to some URL. On control-click it should open up a browser with the corresponding URL.

The URL is available in one of the src/test/resources/some.properties files.

Please let me know how to go about it?

 

1 comment
Comment actions Permalink

Register PsiReference contributor for these places (https://plugins.jetbrains.com/docs/intellij/reference-contributor.html) and return com.intellij.openapi.paths.WebReference instance pointing to resolved URL according to your logic.

0

Please sign in to leave a comment.