Opening project files from a terminal file paths?
已回答
Similar to how VSCode works, if I run something like `find` or `ack` to get a set of file paths from the built-in InelliJ terminal, is it possible to be able to open those files in IntelliJ as tabs by clicking on them?
请先登录再写评论。
You can call IntelliJ IDEA from the command line to open the files specified as arguments, see https://www.jetbrains.com/help/idea/working-with-the-ide-features-from-command-line.html.
Serge Baranov The question is not about using a command line interface to open a file in an IDE from a dedicated terminal.
Let me rephrase (I have the same question BTW).
Sometimes command outputs show file paths. Be it find, git status, eslint, whatever…
In VSCode whenever a terminal sees a string that resembles a file path, it is being highlighted and I can click on it in order to open the corresponding file.
In the JetBrains IDE's Terminal that is currently not possible, as far as I know.
It is a bit annoying, especially when running linters, to have to navigate to the corresponding files manually. I know, when run as integrated tools, sometimes it is possible to click filenames, but not every tool can be set up with run configurations.
BTW there is a 9-years old issue about this: https://youtrack.jetbrains.com/issue/IJPL-103639/Terminal-toolwindow-should-linkify-references-to-project-sources
Please check https://youtrack.jetbrains.com/issue/IJPL-101350/Producing-clickable-file-paths-in-the-embedded-terminal and the linked requests.