📜 ⬆️ ⬇️

IntelliJ IDEA 15 Preview available

Yesterday JetBrains published a preview of IntelliJ IDEA 15 .

For those who do not participate in EAP , this is an opportunity to get acquainted with the new version. For us, this is an opportunity to talk about what we have been working on lately.

image
')
First, by continuing to adapt the IDE to Java 8, we improved the interaction of the debugger with lambda expressions. Now, when setting a breakpoint, you can specify not the entire string, but the specific lambda expression that it contains. Similarly, you can apply Run to cursor to a specific lambda expression, regardless of which line it is on. Finally, if you call Step Into , the IDE will offer to go to the lambda expression, which is a parameter.

image

In addition, a Force return action was added to the debugger, which allows you to interrupt the execution of the current method and return the value you selected. This is useful if you want to change the code execution logic for debugging purposes.

Secondly, recent improvements in the indexing algorithm made it possible to implement an inspection for instant detection of duplicate code. Now, if you write or copy code that is already contained in another part of the project, the IDE will immediately inform you about this and show matches. To make the inspection unobtrusive, we only show matches longer than 5 lines.

image

The interface has also been changed. Run configurations now have status indicators. If the configuration is of type Single instance only , the Run button will look like Restart .

image

Gatter now allows you to run applications and tests. Moreover, for tests, he now knows how to display the results of the last run.

image

Now you can hide unnecessary Tool windows without disabling the plugin. To do this, simply select the Remove from Sidebar item in the menu of the corresponding Tool window .

The text search function has also become more convenient. When you call Find in Path , now the IDE can display the results instantly in the Preview tab. This allows you to spend less time going to the search box and back.

image

Rebase has become a full-fledged operation and is available in the Branches menu, inheriting synchronous operations on several repositories, automatic stashing of local changes and resolving conflicts. The Branches menu itself is available from the Log tab .

image

When you click on the gutter, the IDE now highlights the changes to individual parts of the line. Gatter also learned to distinguish whitespace changes from other changes: a dirty yellow color instead of blue.

During the operation for resolving conflicts, you can now use the Undo command. Annotate action has been added to the Diff viewer .

Mercurial users got patch tools. Perforce users can now store local changes on the Perforce server: Shelve in Perforce .

The plugin for working with Docker has improved due to the convenient editing of container settings; quick creation of a container for the selected image; and support docker toolbox .

image

We supported the new features added in Spring 4.2 : @Bean on default methods in interfaces; @Import for regular classes; annotations @EventListener , @AliasFor , and @ContextConfiguration .

image

Improved support for Spring Boot projects: added hints in the application.yml and additional-spring-configuration-metadata.json files; added automatic setting of facets based on annotations; Improved project creation via Spring Initializr.

For Arquillian, we have added the ability to configure containers. Then the container can be specified when running tests.

In the Scala plugin, support for SAM (single abstract method) has been added; intensity for macros deployment; Postfix compl; Inline refactoring for Type aliases ; and recognition of dynamic test names (for example, “ test (variable) ” or “ test (stringExpression) ”).

The Kotlin language, developed in the depths of JetBrains, is approaching a speedy release, introducing the latest important changes in syntax, Java compatibility, and IDE support. The result of this work is that the plugin for Kotlin now comes with the IDE. For those who are not familiar with Kotlin, as well as those who have not been interested in them for a long time, this is a great opportunity to correct this. Read more about the latest changes in the Kotlin blog .

Working on Kotlin and Scala, we do not forget about Groovy. For it, we added support for AST Transform Builder.

Frontend developers using React will be pleased to learn about improved support in JSX files: added comp, insights, Surround with action, and navigation.

image

Also added support for new TypeScript 1.6 language constructs and some EcmaScript 7 (for example, async / await).

It's no secret that JetBrains is working on a new IDE for working with SQL and databases. Since IntellIJ IDEA includes this functionality, it is worth mentioning its improvements. The main one is native and fast introspection: getting information about database objects taking into account the specifics unaccounted for in JDBC drivers. There is also a convenient table editor, and the ability to view the Execute plan for queries.

image

Among other things, the preview includes changes to Android Studio 1.3 , including the Android Memory (HPROF) Viewer and Allocation Tracker .

I will be glad to answer any questions!

Source: https://habr.com/ru/post/268117/


All Articles