Jump to editor shortcut in Intellij IDEA

前端 未结 8 1175
耶瑟儿~
耶瑟儿~ 2020-12-02 04:57

I can use F12 to jump to project tree (if it was the last tool that I used), but is there a shortcut for jumping back to editor?

8条回答
  •  囚心锁ツ
    2020-12-02 05:42

    This is definitely a workaround, but, on mac os the following keystrokes work,

    [ SHIFT + CMD + A ] > type "edit" > [ ENTER ]
    

    So, I created a Service using Automator as follows,

    • receives no input
    • active for my IDE only ( phpstorm )
    • runs an AppleScript ( see below )

    Then I mapped the Service via "System Preferences > Keyboard > Shortcuts > Services" to

    [ CTRL + OPTION + CMD + i ]
    

    The Automator Service, contains the following AppleScript,

    on run {input, parameters}
        tell application "System Events"
    
            keystroke "A" using {shift down, command down}
    
            delay 0.2
            keystroke "edit"
    
            delay 0.2
            keystroke return
    
        end tell
    
        return input
    end run
    

提交回复
热议问题