Search code examples
eclipsekeyboard-shortcuts

Eclipse: make ESC key focus on active code window


In eclipse (version: 2020-06 (4.16.0)) I wonder if there is a way to map ESC key to focus on active code window.

I've seen this behaviour in NoSQLBooster and is really useful


Solution

  • Yes, to map Esc (in addition to the default of F12) to focus on the active editor, do the following:

    1. Window > Preferences: General > Keys (or hit Ctrl+Shift+L twice)
    2. Select the Active Editor command
    3. Click the Copy Command button
    4. Set the focus into the Binding field and hit Esc
    5. Click the Apply and Close button