How to navigate in-built terminal shell
I was wondering if there is a way to navigate the terminal shell result/output line by line, similar to the IDE. For example, sometimes I log out information to the console and would like to copy the result without having to use a mouse.
I have found a few shortcuts such as cmd + k to clear the terminal output, and using shift + pgup/pgdwn to move the output up a page or down a page (scroll up page and extend selection keymap).
However, having more granular control would be helpful, such as moving a single line up or down. And then being to able to move left/right through the output to then finally copy and paste information.
I am generally interested in the shortcuts I have missed for navigating the in-built terminals of IntelliJ IDE's.
请先登录再写评论。
If you're talking about the Terminal tool window, then it inherits all the properties and shortcuts from the system terminal that it's in fact using (that is, the one assigned in Shell path in IDE Settings | Tools | Terminal) - cmd or powershell on Windows, zsh on Mac. As far as I know none of them supports free navigation through the output with the keyboard, only the current line or the whole shell contents can be copied this way.
I filed a new feature request for this, please upvote IDEA-315251 and follow it for updates, see this article if you are not familiar with YouTrack.
As to the shortcuts - you can find standard terminal (zsh) shortcuts e.g. here. Shortcuts assigned by default to Terminal actions in the IDE can be seen in IDE Settings | Keymap | Plugins | Terminal.