Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

IntelliJ IDEA 2018.1 EAP: Editor Enhancements and More

DZone's Guide to

IntelliJ IDEA 2018.1 EAP: Editor Enhancements and More

Take a look at what's new in IntelliJ IDEA, including updates for try-with-resources blocks in Java and some redesigned help for version control.

· Java Zone ·
Free Resource

Get the Edge with a Professional Java IDE. 30-day free trial.

We’ve just rolled out a new IntelliJ IDEA 2018.1 EAP build. This time, it’s all about editor enhancements, improvements in the VCS, and new and updated inspections. To try the latest EAP build right away, download it from our website or update to it via Toolbox App.

With IntelliJ IDEA, by collapsing some of the currently unnecessary blocks or code regions, you can get a good overview of your code. Although, up until now, if a collapsed block contained some errors or warnings, the IDE would display notifications as colored stripes only visible in the scrollbar. These notifications are easy to miss, and they don’t provide any information about where exactly in your code the problems exist.

The upcoming IntelliJ IDEA 2018.1 highlights the folded code regions that contain errors or warnings — and colors such blocks according to their validation status. This gives you the ability to quickly find the problem in your code.

image5

Also, when you search through the current file, the IDE now highlights the folded code regions if they contain the matching occurrences.

search

Version Control Systems

For the upcoming IntelliJ IDEA 2018.1, we’ve redesigned the Commit combo-button of the Commit Changes dialog to make it more user-friendly. In addition to this, now after you evoke the Commit Changes dialog you can perform the Commit and Push… action using the new shortcut: Alt + Cmd +K (macOS) or Alt + Ctrl + K (Windows and Linux).

image3

Java

In other news, now the IDE detects an explicitly redundant close() call of the resource at the end of a try-with-resources block.

image2

We’ve updated the compute constant value intention, and we have now made it into an inspection, so now it can be applied to the entire file. This inspection is called: Constant expression can be evaluated. The IDE now lets you preview the result of the replacement in a quick-fix name. By the way, the Constant expression can be evaluated inspection now determines the value of the String concatenation.

image1

Last but not least, the mismatched query and update of collection inspection have been updated, with fixes for several minor issues. But if you still encounter any issues, please report them.

A complete list of the changes has been posted here.

Download and try these new features for yourself! Don’t forget to get back to us with your improvement suggestions, and bug reports, they can all be submitted to our issue tracker.

Happy developing!

Get the Java IDE that understands code & makes developing enjoyable. Level up your code with IntelliJ IDEA. Download the free trial.

Topics:
java ,ide ,intellij idea 2018.1 ,version control

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}