Background/Situation
The user is browsing the source file in a browser and wants to open it in the IDE.
Question
How to make the URL for opening the source file in JetBrains IDEs with a line number and column specified?
Answer
A link with parameters like below would be needed.
<name of IDE> ://open?file= <path> &line= <number> &column= <number>
For example,
-
idea://open?file=/Users/ethan/IdeaProjects/spring-petclinic/src/main/java/org/springframework/samples/petclinic/owner/OwnerController.java&line=90&column=9
-
webstorm://open?file=/Users/ethan/WebstormProjects/WebStudy/vue/src/components/notFound/NotFound.vue&line=2&column=8
Comments
0 comments
Please sign in to leave a comment.