Skip to content

IntelliJ IDEA

Gabor Szarnyas edited this page Jun 17, 2020 · 10 revisions

Shortcuts

https://blog.jetbrains.com/idea/2020/03/top-15-intellij-idea-shortcuts/

  • Clipboard history (Paste from history): Ctrl+Shift+V

Using multiple projects

Using multiple projects in Eclipse fashion

Setting up a new project

"No SDK Specified. Do you want to create a project with no SDK assigned? [...]" Add a new SDK to the Project SDK combobox, e.g. /usr/lib/jvm/java-7-oracle

Font antialiasing problems on Linux

See http://youtrack.jetbrains.com/issue/IDEA-57233 for details.

Go to File | Settings, search for Font, ues the Saves As operation on the Default scheme and change the Primary font to Source Code Pro.

For alternative fonts, see also: http://prasans.info/2009/12/install-inconsolata-ttf-in-ubuntujaunty/

Rerun only selected Gradle tests

Configure Gradle project to "Run tests using: IntelliJ IDEA".

https://www.jetbrains.com/help/idea/work-with-tests-in-gradle.html

Troubleshooting

Gradle import issues

Problem: while trying to open a Gradle project, IntelliJ throws an error: Unable to load class 'org.slf4j.LoggerFactory'.

Solution: instead of the local gradle distribution, choose the use gradle wrapper task configuration option.

Lombok

Problem: Lombok projects do not work with Gradle.

Solution: check Enable annotation processing in Settings | Compiler | Annotation Processors (source)

Despite changing the keyboard layout, the physical Ctrl+Z key does the Undo operation

Go to the keymap and simply remap the Undo operation to Ctrl+Y. Do not forget to remap the Redo operation Ctrl+Alt+Y.

Clone this wiki locally