
If you would like to create a personal cheat sheet of things to memorize, consider creating a new scratch file (see lecture in the Misc section) to note down the things and shortcuts that you intend to start using.
You can download, unzip and open the "coding-java" folder in IntelliJ if you want to code along with me. It contains sample code for this course.
The online-course-app is a sample application used in the Spring Integration section of this course.
Shortcuts covered in this lecture:
reformat code
optimize imports
join lines
Note 1: you can also export your customized code formatting settings to share it with other team members from the settings dialog.
To make sure other developers (with other IDEs) adhere to the same code formatting rules, consider using a ".editorconfig" file. This is described in a separate lecture in the bonus section.
Note 2: In the settings, you can enable auto-formatting and import optimization as a default action to be performed on save. The version control commit dialog also has checkboxes to run these actions before committing.
Note for color-blind users: To modify the line coverage colors, go to 'File | Settings | Editor | Color Scheme | General' and choose "Line coverage" from the tree of options.
JaCoCo is often used to calculate test coverage metrics on CI/CD systems - having the same percentages in IntelliJ and on a build server is a good idea. This lecture shows you how to change the setting in IntelliJ.
Tip: To better memorize shortcuts for various tool windows, display the tool window numbers in the IDE.
You may skip this lecture if you are not interested in the ktor framework.
In this coding exercise, we add a new web endpoint to our ktor project which returns the current time, so that we have some local changes for committing and pushing.
In this exemplary debugging session, we analyze a typical issue with concurrent access on seemingly thread safe code. Breakpoint settings can be modified to suspend the current thread only instead of everything. This is often needed in such scenarios.
Go to https://www.jetbrains.com/help/idea/pro-tips.html#dcevm for more information on how DCEVM can overcome some reloading limitation sin debugging sessions (mentioned at the end of the lecture).
I invite you to join my IntelliJ IDEA course, which will not only cover many keyboard shortcuts but also other productivity boosters like strategies for debugging and refactoring - all condensed into a single well structured course.
This course is intended for all software engineers and developers who would like to unlock the full potential of their IDE.
I am using the Ultimate edition of IntelliJ in this course- if you do not have a license then you can either use the 30 day trial version of intelliJ or simply skip the (few) parts which are not applicable to the community edition.
This is a hands-on course - meaning lectures are mostly screencasts with additional explanations. Sample code is provided as a downloadable zip archive so that you can code along with me - this will help you a lot to actually memorize the shortcuts and contents of the course.
The lectures are kept short, so that you can watch them anytime (e.g. during your coffee breaks) and so that you can skip the parts that you already know and re-watch what you forgot.
The course will be updated from time to time when new IDE releases introduce meaningful changes or features.
Feel free to take a look at the free preview videos before enrolling.