IntelliJ IDEA 2018.1 EAP: editor enhancements and more

Zlata Kalyuzhnaya

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 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 scroll bar. These notifications are easy to miss, and they don’t provide any information about where exactly in your code the problem exists.

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 give you the ability to quickly find the problem in your code.


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


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).



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


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.


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!

Comments below can no longer be edited.

20 Responses to IntelliJ IDEA 2018.1 EAP: editor enhancements and more

  1. ADEV says:

    February 6, 2018

    If you need more suggestion to improve the editor:

    – split run panel so we can see two output (client/server)
    – fold/collapse if/while/else/for etc
    – dlang support

    • indrek says:

      February 7, 2018

      > split run panel so we can see two output (client/server)

      Please vote:

    • Dmitry says:

      February 9, 2018

      I find if/for/while folding with Ctrl+W Ctrl+. mostly adequate.
      Having a folding button for every single curly bracket is an overkill IMO.

      But I do miss an easy way to select the content of a block without the surrounding brackets:
      This would help to fold the blocks into nice `{…}` instead of just `…`.

  2. Leif says:

    February 6, 2018

    +1 for – fold/collapse if/while/else/for etc

  3. Rik says:

    February 6, 2018

    Why is this bug still open while you claim you have made the Commit Changes dialog more user-friendly?

    • Dmitriy Smirnov says:

      February 14, 2018

      We fixed it in a different way. Now there are dedicated shortcuts.
      For commit and push – Alt+Cmd/Ctrl+K
      To open the drop-down list – Alt+Shift+Enter.
      Ctrl+Enter executes Commit, this has not changed.

      Note that the Commit button and the Expand drop-down list are two separate buttons, and Alt+I should not open a drop-down, cause it is the accelerator for Commit. Thus calling it executes commit, and it is expected.

      The issue is that it also adds an unexpected symbol to the commit message. It happens on Mac only though, because Alt+smth are used to input special symbols there, and it is not specific to the commit dialog.

      • Frits Jalvingh says:

        February 20, 2018

        I have to say that this, for me, is far from an improvement.

        The earlier version allowed ALT+P to do the commit+push action, which then showed the useless “push” dialog. Pressing the ALT+P button again then completes that. So a commit was CTRL+K, then twice ALT+P.

        Now for the same we have to do CTRL+K, CTRL+ALT+K, ALT-P. That is hard to get in the head – no logic there.

        I’d rather have back the ALT+P instead of CTRL+ALT+K for push – it’s Push after all, not Kush 😉

        • Dmitriy Smirnov says:

          February 20, 2018

          The sequence to Commit and Push is now – CTRL+K -> CTRL+ALT+K -> CTRL+ENTER. There is no need in Alt+P.

          BTW, mnemonics should work only for elements that are visible – and Commit and Push button is not visible unless you expand the drop-down (ALT+SHIFT+ENTER). After that, the Alt+P should still work.

          We chose K because the regular Push action uses it (SHIFT+CTRL+K)

          It breaks the habit if you are used to Alt+P, indeed, but removes inconsistency and allows to solve some issues with mnemonics, e.g. conflict with OS shortcuts.

          You are welcome to submit a request to the tracker describing the concerns.

          For option to push without showing the push dialog please vote for

          • Frits Jalvingh says:

            February 28, 2018

            I would respectfully submit that this key combination is horrible, especially since it is for by far the most executed VCS action (by me).

            It is a bit like those electronic answering machines…

            Press 1 to leave a message
            Press 2 to make an appointment
            Press 34895374057345 to register a complaint…

            The previous one at least had only one set of keys to remember (and yes, I checked, it was CTRL+K and then a few times ALT-P).

            I will add something to the bugtracker.

  4. wang says:

    February 7, 2018

    why when i use ” or
    ” or

    in XXXMapper.xml come to error

    Doesn’t support mybatis?

    • wang says:

      February 7, 2018

      sql id=”Base_Column_List”

      include refid=”Base_Column_List”

      trim prefix=”(” suffix=”)” suffixOverrides=”,”

      doesn’t work

  5. macdevign says:

    February 7, 2018

    Will be great if this release is set to fix JShell Console issues. Useful as it seems, it is basically not usable with many critical bugs (eg compilation fail, auto-complete issues ). Not too sure why it didn’t receive as much attention.

    • says:

      February 7, 2018

      Hi macdevign. Currently we’re not sure how useful and popular Jhell is. It seems that user already can get not less using Scratches functionality, which is already stable. Please let us know if you have some specific use cases for JShell which cannot be done with Scratches.

      • macdevign says:

        February 8, 2018

        I find that JShell Console is really useful for quickly experimenting with of Java and third party library, just like Ruby IRB, without those Java formalities still require by Scratch functionality (class structure, with main. can we even run Scratch file ? ). Probably take time for Java developers to realize how JShell can be useful as Java 9 is still pretty recent.

        I will have use JShell from Java9 if not for its less than friendly auto-completion and quirky editing feature.

    • Brice says:

      February 7, 2018

      Try the groovy console it has been there since years, and it allows to play with the compiled classes of the module of your choice.

      • macdevign says:

        February 8, 2018

        Unfortunately Groovy is not 100% Java (eg syntax). People just want to copy some fragment of Java code from net and run-test it quick, without rewriting it.

  6. Cris says:

    February 7, 2018

    I see now (not sure if it started with this EAP when you change between light/dark editor schemes, IntelliJ pops up a dialogue to also switch the UI theme similarly.

    Is there a setting for this? I accidentally declined, but would like this behaviour for future scheme changes.

  7. John Ruffo says:

    February 8, 2018

    It would be great if it had profiling tool out of the box, like NetBeans.

    • Dmitry says:

      February 9, 2018

      I noticed a Profile button replaced Run with Coverage on the main toolbar in a fresh IDEA setup.
      It does not seem to do anything “out of the box”. But probably it’s a hint for a built-in profiler?

  8. Murali says:

    March 8, 2018

    I have issues with idea 2018.1 on ubuntu linux. The fonts are not like 2017.3 and the icons sizes are really bad. I am losing interest in using 2018.1. I like everything about 2017.1. The folder icons and the run panel delete icons are bad. Please address it.


Subscribe for updates