# Hi, I want to make a click-to-jump plugin

**URL:** <https://platform.jetbrains.com/t/hi-i-want-to-make-a-click-to-jump-plugin/1096>\
**Category:** IntelliJ Platform\
**Created:** [March 26, 2025, 5:43am UTC](https://platform.jetbrains.com/t/hi-i-want-to-make-a-click-to-jump-plugin/1096 "2025-03-26T05:43:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![licheng1013](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/licheng1013/32/968_2.png) [@licheng1013](https://platform.jetbrains.com/u/licheng1013)\
**Post date:** [March 26, 2025, 5:43am UTC](https://platform.jetbrains.com/t/hi-i-want-to-make-a-click-to-jump-plugin/1096/1 "2025-03-26T05:43:52Z")

</div>

Hi, I want to make a click-to-jump plugin. Like this.

 ![image](https://us1.discourse-cdn.com/flex001/uploads/jetbrains_platform/original/1X/5f1b59fe6490969a9521dda13ba33cc7ab4fae08.png)

---

<div class="post-metadata">

**Author:** ![eltonsandre](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/eltonsandre/32/210_2.png) [@eltonsandre](https://platform.jetbrains.com/u/eltonsandre)\
**Post date:** [March 26, 2025, 8:55pm UTC](https://platform.jetbrains.com/t/hi-i-want-to-make-a-click-to-jump-plugin/1096/2 "2025-03-26T20:55:56Z")

</div>

You can create a reference to a fake **psiElement** , it would `resolve()` to references to an inheritor of the `com.intellij.psi.impl.FakePsiElement` class  
see: `com.intellij.openapi.paths.WebReference`

---

<div class="post-metadata">

**Author:** ![chriscarini](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/chriscarini/32/695_2.png) [@chriscarini](https://platform.jetbrains.com/u/chriscarini)\
**Post date:** [March 27, 2025, 5:35am UTC](https://platform.jetbrains.com/t/hi-i-want-to-make-a-click-to-jump-plugin/1096/3 "2025-03-27T05:35:01Z")

</div>

Is it safe to assume you mean _not_ for URLs like the example you gave?

e.g. something like below…

```auto
// this is a comment foo://and_this_is_clickable_and_will_jump_to_line#24 is where the bug is
public class Foobar {
...

```

The reason I ask is to clarify, because, at least for me, the URL you have outlined _is_ clickable.

---

<div class="post-metadata">

**Author:** ![licheng1013](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/licheng1013/32/968_2.png) [@licheng1013](https://platform.jetbrains.com/u/licheng1013)\
**Post date:** [March 27, 2025, 5:47am UTC](https://platform.jetbrains.com/t/hi-i-want-to-make-a-click-to-jump-plugin/1096/4 "2025-03-27T05:47:15Z")

</div>

Yes, do you have any suggestions?

---

<div class="post-metadata">

**Author:** ![chriscarini](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/chriscarini/32/695_2.png) [@chriscarini](https://platform.jetbrains.com/u/chriscarini)\
**Post date:** [March 27, 2025, 6:06am UTC](https://platform.jetbrains.com/t/hi-i-want-to-make-a-click-to-jump-plugin/1096/5 "2025-03-27T06:06:05Z")

</div>

It sounds similar to another question asked in the old forum/community/support-area 👉 [https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004509340/comments/360000707519](https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004509340/comments/360000707519) which is very similar to what @eltonsandre suggested above.

If you’re specifically looking for “specific text/regex pattern → webpage”, then you could look at “Issue Navigation” feature of IJ platform. I have a plugin that leverages this to automatically configure text like `(#123)` in repos to automatically navigate to the respective GitHub issue (e.g. `https://github.com/<owner>/<repo>/issues/123`).

If you’re specifically looking for “specific text/regex pattern → something else” (where something else might be a specific element somewhere in the IJ project (or elsewhere), then fake psi element route might be a good option.

---

<div class="post-metadata">

**Author:** ![xepozz](https://sea1.discourse-cdn.com/flex001/user_avatar/platform.jetbrains.com/xepozz/32/589_2.png) [@xepozz](https://platform.jetbrains.com/u/xepozz)\
**Post date:** [March 27, 2025, 7:22am UTC](https://platform.jetbrains.com/t/hi-i-want-to-make-a-click-to-jump-plugin/1096/6 "2025-03-27T07:22:29Z")

</div>

For your own language add PsiLiteralValue interface to the PSI element implementation (and interface) and all kind of these references will be applied automatically.
