====== Eclipse cheat sheet ====== ===== Important key combinations ===== * Ctrl+Space: content assist * Ctrl+Shift+L: shows a list of key bindings! * Ctrl+T: Show type hierarchy * Ctrl+Shift+T: Open Type * Ctrl+Shift+H: Call hierarchy * F3: Open class/method/definition * Alt+Shift+{←↑→↓}: Java block-wise selections * Ctrl+F3: Show structure (mostly equivalent to outline) ==== Templates ==== * sysout, main, for, … * Format code: Ctrl+Shift+F (I prefer looking at formatted code!) * Ctrl+1: content-aware assist (split declaration, * Ctrl+Alt+Z: surround selection with… ===== Source ===== * Getters and setters: Alt+Shift+S R * Extract local variable from selection: Alt+Shift+L * Extract method from selection: Alt+Shift+M * Generate constructors: Alt+Shift+S O (fields) or Alt+Shift+S C ===== Refactoring ===== * Rename: Alt+Shift+R * Refactoring menu: Alt+Shift+T