The shortcuts and tricks Raymond uses in class — the fastest way to move around IntelliJ and write less code by hand
⌘ = Command, ⌥ = Option/Alt, ⌃ = Control, ⇧ = Shift. If a shortcut ever doesn’t work, open Help → Keymap Reference in IntelliJ — your keymap might be different.
// on the current line or selection./* ... */.;, closing brace, or parentheses so the line parses.toString(), equals().if, try/catch, a loop, or braces — no retyping.3.14 into a static final constant.. and one of these suffixes, then Tab. IntelliJ rewrites the expression around it. Example: type names.for and press Tab → IntelliJ writes the full for loop for you.
"hello".sout → System.out.println("hello");scanner.nextInt().var → int i = scanner.nextInt();isValid.if → if (isValid) { }name.null → if (name == null) { }. .nn is the not-null version.names.for → enhanced for (String name : names) { }10.fori → for (int i = 0; i < 10; i++) { }result.return → return result;isValid.not → !isValidpublic static void main(String[] args) { }.System.out.println(); — cursor lands inside the parens.System.out.println("name = " + name);for (int i = 0; i < ; i++) { }.for over the nearest array or collection in scope.if (x == null) { } using the last variable in scope.// TODO: in your code and IntelliJ highlights it. Open the TODO tool window (View → Tool Windows → TODO) to see every TODO across the project.Tip: bookmark this page — you’ll use it all through the bootcamp. Keymap: IntelliJ Default. On Mac, if a shortcut collides with the OS, open Settings → Keymap to rebind it.