Partial GIT commits and more

IntelliJ IDEA 2018.1: New EAP build, new features

Gabriela Motroc

© Shutterstock /

New IntelliJ IDEA 2018.1 EAP build, new features. You can download the new EAP build here, or make an update via the Toolbox App. Now it’s time to reveal some of the changes the next release will deliver. Don’t forget — IntelliJ IDEA 2018.1 will be released soon.

IntelliJ IDEA 2018.1 will be released soon (so stay tuned) but in the meantime, let’s have a look at the new EAP build. If you want to give the new features a try, download the EAP build from the EAP page on the JetBrains website or make an update via the Toolbox App.

However, keep in mind that since this is an early build, things might not work as expected. If you encounter a problem, use the issue tracker to let the team know.

SEE ALSO: What to expect from IntelliJ IDEA 2018.1

IntelliJ IDEA 2018.1: New EAP build, new features

IntelliJ IDEA 2018.1 will support partial Git commits (git add -p). Starting with this latest EAP, the IDE commits only selected changes from the file and skips all other changes, according to the blog post announcing the latest developments. Users can include code chunks into a commit using the checkboxes in the Diff pane of the Commit Changes dialog.

Source: IntelliJ IDEA 2018.1 EAP

The IDE will now allow you to associate the code chunks with a changelist (not the whole file) and track them separately. You can move the code chunks between changelists using the Move to another changelist action which is available from the context menu of the Diff pane in the Commit Changes dialog.

Source: IntelliJ IDEA 2018.1 EAP

You also have the option to add code chunks to a changelist right from the editor. All you need to do is click on a change marker in the gutter. When the pop-up appears, you can choose from the available changelists or create a new one.

With IntelliJ IDEA 2018.1 you will be able to choose how to display your local changes by grouping them according to their: directory, module or repository with the new Group by icon, available in the Local Changes tab in the Version Control Tool Window. Until now, the IDE only allowed you to group or ungroup your local changes simultaneously by directory and module.

You can now select one of the grouping options or all three at once. However, keep in mind that grouping by the repository will only become available when you have two or more roots configured in your project.

Source: IntelliJ IDEA 2018.1 EAP

Postfix code completion enhancements

There have been improvements to IntelliJ IDEA 2018.1 with regard to the postfix code completion.The IDE now allows you to define the custom postfix Java templates at Preferences | Editor | General | Postfix Completion.

You can create your own Java templates or edit and rename some of the predefined Java templates.

Gabriela Motroc
Gabriela Motroc was editor of and JAX Magazine. Before working at Software & Support Media Group, she studied International Communication Management at the Hague University of Applied Sciences.

Inline Feedbacks
View all comments