Get pre-recorded course for just $7 here: https://javaspecialists.teachable.com/p/intellij-wizardry
- Why I Switched to IntelliJ IDEA in 2003 -
1.1. Analyze -> Inspect Code ..., Swing GUI Builder
Setting up in SETUP.md
- Superkey ⌥⏎, fixes almost anything, "Show intention actions and quick-fixes"
2.1. ⌘⇧A Find Action - but you need to know the name
2.2. resources/IntelliJIDEA_ReferenceCard.pdf - Switching Between Tool Windows ⌘1, ⇧Esc
3.1. Closing tool window with ⌘1 - Setting Up Autoscroll to/from Source Also View -> Appearance -> Toolbar
- Creating new ... ⌃⏎ in Project Tool Window
- Live templates: psvm, sout, soutv, soutm, soutp, souf, serr, iter, fori, itco itar
- Navigation with ⌥⌘⇽ and ⌥⌘⇾ and ⌘Click
7.1. Is the mouse / touchpad evil?
7.2. ⇧⇧ Search Anywhere and ⇧⇧⇧⇧ to include non-project items - Jump to new line out of middle of code with ⇧⏎
- Extend / shrink selection ⌘W
- Move code up / down with ⇧⌘Up and ⇧⌘Down
- Surround statements with ⌥⌘T
- Select template ⌥⌘J (customize with Editor->Live Templates->surround)
- Error based coding: F2, followed by ⌥⏎ and Tab ⇥
- Line based editing: ⌘D, ⌘X, ⌘V, seldomly ⌘⌫
- Column select editing (customized keymap ⌃⇧⌘C)
- Reformatting code ⌥⌘L and join line ⌃⇧J
- Presentation mode for speakers (customized keymap ⌥⌘P)
- Code and variable completion ⌃Space
- Smart code completion - just type, and it magically figures out what you want to do ⌃⇧Space
19.1. Complete current statement ⌃⌘⏎
19.2. Parameters ⌘P - Comment/Uncomment current line - ⌘/ 20.1. Code Folding
- Override/implement methods - ⌘O and ⌘I
- Camel prefix in code completion
- Copy Class F5
- Move class/method/field F6
- Rename class/method/field/variable ⇧F6
- Refactor: Change Signature ⌘F6
- Refactor: Introduce Variable - ⌥⌘V
27.1 .var - Refactor: Extract Method - ⌥⌘M
- Refactor: Inline ⌥⌘N
- Refactor: Safe Delete
- Analyze -> Inspect Code
- Inspect Code: Finding declarations that could be more "private"
- Inspect Code: final/non-final parameters and local variables
- Inspect Code: Marking fields final
- Inspect Code: Finding unused code
- Inspect Code: Finding badly handled exceptions
- Inspect Code: Migrating to newer Java versions
- Local History
- Terminal ⌘2
TODO: ⌘K - commit to VCS ⌘⇧K - Push to VCS
- Conclusion
Appendix