Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Navigate to the file from output in the terminal - WebStorm

Tags:

webstorm

Is it possible to tune WebStorm so that when I have something like this in my terminal window, then I just click on the filename and jump to it.

enter image description here

like image 914
Bill Lumbert Avatar asked Feb 22 '17 10:02

Bill Lumbert


People also ask

How do I navigate in WebStorm?

Navigate to a file with the Navigation bar Use the Navigation bar as a handy tool to find your way across the project. Press Alt+Home to activate the Navigation bar. Use the arrow keys or the mouse pointer to locate the desired file.

How do I find a file in WebStorm?

Search for files and foldersPress Ctrl+Shift+N and start typing your query, CamelCase and snake_case are supported. The list shrinks as you type. Select the file or folder you need and press Enter . If you selected a file, WebStorm opens it in a new editor tab.

How do I change WebStorm Terminal?

Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version. Don't forget the quotes around the command.


2 Answers

Not possible using built-in terminal (please vote for IDEA-118566 and IDEA-154439).

Awesome Console plugin might be a solution; but it doesn't support built-in terminal (https://github.com/anthraxx/intellij-awesome-console/issues/23)

there is also Output Link Filter plugin that provides similar functionality, but it looks outdated and (also) doesn't work in built-in terminal

Update (2022): IDEA-118566 is already fixed, links should work. Please note that providing links for particular output needs adding specific logic handing such output. Thus, if you encounter missing links in a particular output, please file a separate issue request describing link output format and steps to reproduce such output.

like image 151
lena Avatar answered Sep 20 '22 15:09

lena


It's not quite a single click solution, but what I do, is double click the text so that it auto selects and copies the path, including line and char numbers to clipboard. Then use the shortcut for Goto File.... Hit paste (cmd+v) then Enter and it will take you to the exact location.

For me, the shortcut for Goto File... is cmd+shift+O - you can check your shortcut in the menu Navigate -> File...

like image 36
Robbie Avatar answered Sep 16 '22 15:09

Robbie