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

IntelliJ IDEA 2018.2 EAP2: Breakpoint Intentions, Code Refactoring, and More

DZone's Guide to

IntelliJ IDEA 2018.2 EAP2: Breakpoint Intentions, Code Refactoring, and More

Take a look at two pending updates coming to IntelliJ IDEA: setting breakpoint intentions, and enhanced refactoring support.

· Java Zone ·
Free Resource

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

We opened an Early Access Program for IntelliJ IDEA 2018.2 just one week ago, but today, we are ready to deliver a new EAP build with some cool new features. Update from within the IDE via the Toolbox App, or download the new EAP build directly from the website. Here’s a little more insight into what this new build has in store for you.

JVM Debugger

We have some new improvements for you in our debugger. The upcoming IntelliJ IDEA 2018.2 brings new breakpoint intentions.

In IntelliJ IDEA, while debugging, you can limit the breakpoint to hit only particular object instances, or define the class where you want the breakpoint to be hit or the classes where the breakpoint should not be hit. These nice capabilities, however, required editing the properties of a particular breakpoint by hand – setting different filters, lots of button clicking, and so on.

Starting from now, while debugging a Java project, we’ve provided some handy intention actions:

  • Stop only in class

  • Do not stop in class

  • Stop only in the current object

No more fiddling about with the Breakpoint dialog and its filters! When you’re in a debugging session, simply invoke the well-known Alt+Enter shortcut and the IDE will offer you the new breakpoint intentions along with all the other available intentions!

image1

Code Refactoring

The upcoming IntelliJ IDEA 2018.2 introduces a new preview panel for the Extract Method refactoring. This can be quite useful when you perform refactoring on the code fragments with duplicates.

Invoke the Extract Method refactoring using the shortcut (Ctrl+Alt+M on Windows/Linux or cmd+alt+M on macOS) or from Refactor | Extract | Method, and the IDE will show you the Extract Method dialog. Click the Preview button and preview all the changes in one place.
The IDE now provides you with the ability to review the results of your refactoring before you make any actual changes.

image2

In addition, we have enhanced our Maven support, so IntelliJ IDEA now correctly parses POM even when the parent POM reference contains the property placeholder. Also, the IDE now resolves properties from the configuration files: .mvn/maven.config and .mvn/jvm.config.

For further details on the changes, please consult the release notes.

You can try out these new features right now in the latest EAP build! Download!

And don’t forget that we are always looking forward to your feedback in our issue tracker, here in the comments, or on Twitter.

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 ,intellij idea ,debugging ,refactoring ,breakpoint

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}