How to jump from Intellij terminal to editor with shortcut

后端 未结 12 1834
再見小時候
再見小時候 2020-12-12 20:21

I know that you can jump from almost all windows in Intellij IDEA to the editor window with Esc. In Intellij\'s terminal window, this does not work. Does anyone k

相关标签:
12条回答
  • 2020-12-12 20:31

    Ubuntu:

    alt + 2(twice) - jump from the terminal to the editor
    alt + F12 - open the terminal 
    

    Mac:

    cmd + 2(twice) - jump from the terminal to the editor
    options + F12 (this shortcut toggles the terminal window on and off)
    
    0 讨论(0)
  • 2020-12-12 20:32

    Another possibility:

    Shift + Esc
    

    (This one will close terminal panel)

    0 讨论(0)
  • 2020-12-12 20:32

    Assumption

    This solution assumes that you want to leave the terminal and version control tab (or any tab) always open and don't want to close any of them. And you want to jump from terminal to editor using keybaord shortcut.

    Solution

    1. Assign 2 (or any other shortcut) to jump to terminal
    2. You have already 9 to jump to version control tab
    3. Press 9 and Esc. This will take you to editor and both the version control tab and terminal will remain open
    4. When you want to goto terminal just press 2

    Webstorm screenshot

    You can see my webstorm, I alway open two tabs at bottom. And you can also see the settings of terminal in this screenshot which are used to open it in split mode.

    0 讨论(0)
  • 2020-12-12 20:33

    Injellij -> Preference -> Key Map -> search "terminal" -> .

    find or change the shortcut there

    0 讨论(0)
  • 2020-12-12 20:34

    It might be an option to disable Preferences > Tools > Terminal > Override IDE shortcuts

    Esc works after that

    0 讨论(0)
  • 2020-12-12 20:36

    On OSX PhpStorm 8, 2 twice works. + numbers are not likely to be assigned as [default] shortcuts on OSX as they are special characters like ™ ( 2).

    For me, only 2, 6, and 9 work with this idea, 2 being the least disruptive as @dev suggests.

    There is an open ticket about the Terminal focus issue that might be worth following to see if this behaviour improves in the future.

    0 讨论(0)
提交回复
热议问题