supportDocs

Keyboard commands for Eclipse

These are the basics you should already know:

Mac:

cmd + c (copy)

cmd + v (paste)

cmd + z (undo)

cmd + x (cut)

cmd + s (save)

Windows:

cntrl + c (copy)

cntrl + v (paste)

cntrl + z (undo)

cntrl + x (cut)

cntrl + s (save)

For macOS:

  1. General Navigation:

    • Open Resource: Cmd + Shift + R
    • Open Type: Cmd + Shift + T
    • Navigate Back: Cmd + Alt + Left Arrow
    • Navigate Forward: Cmd + Alt + Right Arrow
  2. Code Editing:

    • Content Assist (Code Completion): Cmd + Space
    • Quick Fix: Cmd + 1
    • Organize Imports: Cmd + Shift + O
    • Format Code: Cmd + Shift + F
    • Comment/Uncomment Line: Cmd + /
    • Duplicate Line: Cmd + Alt + Down Arrow
    • Delete Line: Cmd + D
    • Move Line Up/Down: Alt + Up/Down Arrow
  3. Running and Debugging:

    • Run: Cmd + F11
    • Debug: Cmd + Shift + F11
    • Step Over: F6
    • Step Into: F5
    • Step Return: F7
    • Toggle Breakpoint: Cmd + Shift + B
  4. Refactoring:

    • Rename: Cmd + Alt + R
    • Extract Method: Cmd + Alt + M
    • Extract Local Variable: Cmd + Alt + L
    • Inline: Cmd + Alt + I

For Windows:

  1. General Navigation:

    • Open Resource: Ctrl + Shift + R
    • Open Type: Ctrl + Shift + T
    • Navigate Back: Alt + Left Arrow
    • Navigate Forward: Alt + Right Arrow
  2. Code Editing:

    • Content Assist (Code Completion): Ctrl + Space
    • Quick Fix: Ctrl + 1
    • Organize Imports: Ctrl + Shift + O
    • Format Code: Ctrl + Shift + F
    • Comment/Uncomment Line: Ctrl + /
    • Duplicate Line: Ctrl + Alt + Down Arrow
    • Delete Line: Ctrl + D
    • Move Line Up/Down: Alt + Up/Down Arrow
  3. Running and Debugging:

    • Run: Ctrl + F11
    • Debug: Ctrl + Shift + F11
    • Step Over: F6
    • Step Into: F5
    • Step Return: F7
    • Toggle Breakpoint: Ctrl + Shift + B
  4. Refactoring:

    • Rename: Alt + Shift + R
    • Extract Method: Alt + Shift + M
    • Extract Local Variable: Alt + Shift + L
    • Inline: Alt + Shift + I