- https://javaspecialists.teachable.com/p/intellij-wizardry
- https://pro.codely.tv/library/intellij/104101/about/
- https://github.com/islomar/my-notes/blob/main/intellij.md
- Presentation assistant: in order to show the keys pressed -> https://plugins.jetbrains.com/plugin/7345-presentation-assistant
- Infinitest: at least very interesting for katas or small projects -> https://plugins.jetbrains.com/plugin/3146-infinitest
- After installation, you need to add "Infinitest" to your project as a "Facet".
- It doesn't seem to work right now: infinitest/infinitest#239
- Key promoter
- Alt + Enter: general command, it fixes things which might be improved
- Alt + 1: toggle the "Project View"
- Alt + Insert:
- On project view: create new file
- On a class: Generate X (constructor, getters, equals, etc.)
- Live templates: [ psvm, sout, soutv, soutp, souf, serr fori, iter, itco, itar ] + Tab
- Shift + Enter: creates and jump to a new line below the current line
- Ctl + Shift + A >> Find Action
- Ctl + Shift + Up/Down: move statements up and down
- Alt + Left / Alt + Right: navigate to the last/next place
- Ctl + W: Syntax aware selection = Select successful incresingly code blocks
- On a text, it selects it. If you keep pressing it, it selects the context around.
- F2: navigate to the next highlighted error
- Ctrl + X: deletes the line
- Ctrl + D: duplicates the line (in Eclipse it deletes it).
- Ctrl + Shift + V: paste history
- Ctrl + Shift + T: jump to its corresponding test (or creates it)
- Column selection (it was disabled by default: Edit -> Column Selection Mode): first, select the lines, then press Alt+Shift+Insert, then write, finally Esc.
- Ctrl + Shift + Space: SmartType completion (e.g. after a "new", it knows what you might want).
- Ctrl + o: override/implement methods
- F6: move
- Ctrl + Shift + F10: run
- Ctrl + P: parameter info, inside a method it tells you the different parameters that it allows
- Ctl + Alt + Shift + T >> Refactor
- Ctrl + Alt + M: extract method
- Ctrl + Alt + V: having something selected, it creates a variable
- Ctrl + F6: change signature
- Shift + F6: rename
- Alt + F12: toggle Terminal
- Ctrl + E: recent files
Some are done, for example, because it collides with Linux shortcuts.
- Ctrl+Shift+F: format code (originally Ctrl+Alt+L)
- Ctl + Alt + T >> Surrownd with
- Print the "Help -> Keymap reference" PDF (fold it and put it on your desk)
- Configure "Autoscroll to/from source" (in the gear button)
- In order to indent the Spock Given-When-Then: Codestyle >> Groovy >> Label indent: 4
- Help -> Productivity Guide: here you can see the shortcuts used and the total time saved thanks to it
- Find and replace:
- find: CREATE SCHEMA (.*)
- replace: CREATE SCHEMA $1\nUSE $1
- Toggle auto-test: it doesn't seem to work...
- Settings >> "Change font size (zoom) with Ctrl+Mouse wheel"
- Use Camel prefix in code completion
- Configure Inspections ad-hoc:
- "field may be final"
- Use of "Local History"
- Migrating to Java 8: https://www.jetbrains.com/help/idea/migrating-to-java-8.html
- Spock indentation: Settings -> Editor -> Code Style -> Groovy -> Tabs and Indents
- ibus-daemon -rd >> to fix that IntelliJ hangs
- Intellij keyboard hangs: http://askubuntu.com/questions/501907/keyboard-locks-in-intellij-idea-on-ubuntu-14-04 mvn clean install -Dmaven.surefire.debug
- https://youtrack.jetbrains.com/issue/IDEA-209726
- How to increase font size for a presentation? (besides Presentation mode)