Early Access Program

IntelliJ IDEA 2019.2 EAP5: Commit from Local Changes and more

IntelliJ IDEA 2019.2 EAP build comes with a new pack of the cool features. Download it and try them out!

Commit from the Local Changes

Why follow tradition? The upcoming IntelliJ IDEA 2019.2 will let you commit directly from the Local Changes, there is no longer any need to go through a separate Commit dialog.

Now while working on a commit, you will be able to browse through the source code, view the history for a specific file, view the diff for the file in the same area as the commit, or use the other features of the IDE. Previously all these actions were impossible because the modal commit dialog blocked all the other IDE functionality.

In the upcoming IntelliJ IDEA 2019.2, we have added a new feature for projects that use Git or Mercurial as their version control system. Now when you press the Commit shortcut (Ctrl-K on Windows, Linux/Cmd-K on macOS) the IDE will select the modified files for the commit and focus on the Commit message field in Local Changes tab of Version Control tool window. You will be able to review the selected files, and change the file or code chunk.

NonModalCommit1

NonModalCommit2

The Amend Commit action will be available from the Commit toolbar. Alternatively, you will be able to amend a commit using the new shortcut Alt+M on Windows and Linux, Ctrl+Alt+M for macOS. More commit options will be available under the settings icon on the Commit toolbar and can be invoked on demand.

When there is a history of commit messages, as before you will be able to use the Ctrl+M shortcut (Windows, Linux, macOS) to view it, or you can click on the “Commit Message History” icon in the bottom left corner.

This is a long-awaited feature, but it also affects the current workflow, and if you would like to return back to the original Commit dialog, you can uncheck the “Commit from the Local Changes without showing a dialog” checkbox in Preferences / Settings | Version Control | Commit Dialog.

Better Kotlin JPA support

The upcoming IntelliJ IDEA 2019.2, will come with better JPA support for Kotlin, the IDE will provide you with code completion, error highlighting, and icons on the gutters for navigation.
JPAGutterIcons

It will also be possible to generate Kotlin entity classes; simply select the provided script in Scripted Extensions | Generate Kotlin Entities of the context menu of the DataBase tool window. The script itself is easily customizable, you just need to change the code line to add annotations to fields or methods, etc. Go to the Scripts Directory and experiment with the script by modifying it to fit a specific task.

JPAKotlin

Furthermore, references to various elements in your database will be also injected into Kotlin code. The IDE will navigate you to the corresponding column or table with the “Go to Declaration” action (cmd+B on macOS, Ctrl+B on Windows and Linux).

KotlinJPAcmdB

Windows Defender performance warning

The IDE will warn you when Windows Defender is affecting the build performance. We’ll port this feature from Android Studio’s Project Marble, and we’ll add a few enhancements to it:

  • IntelliJ IDEA will check for process exclusions, not just directory exclusions
  • IntelliJ IDEA will check that Windows Defender is the active antivirus
  • IntelliJ IDEA will be able to automatically exclude directories from real-time scanning.

Don’t hesitate to download and try IntelliJ IDEA 2019.2 EAP! Any and all feedback is welcome in our issue tracker.

Happy Developing!

image description

Discover more