In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "what functions does IntelliJ IDEA2018.2 support", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn what functions IntelliJ IDEA2018.2 supports.
Java
IntelliJ IDEA 2018.2 supports the new syntax for local variables used by the Lambda parameter (that is, JEP 323). This is a new feature in Java 11, which is scheduled for release in November. This feature allows developers to use var in Lambda expressions:
/ / Java 8, var is not supported.
BiConsumer consumer = (Processor x, String y)-> x.process (y)
/ / Java 11, which supports var.
BiConsumer consumer = (var x, var y)-> x.process (y)
To match the var support of Java 11, holding down the "Ctrl/ ⌘" key in IDE and hovering the cursor over the var will display the type of the variable.
For lengthy method chains in the code, IntelliJ IDEA will give a type hint (Type Hint). When faced with a long chain of methods with generics, developers can view the type hints for each call through this feature.
2018.2 adds a new preview panel for refactoring using Extract Method (extraction method). It helps developers look at the possibilities of refactoring before confirming changes.
IntelliJ IDEA has improved support for @ org.jetbrains.annotations.Contract annotations. This annotation allows developers to specify a response method for the passing of specific parameters, which will help with Nullability analysis and other code checks. The new support values for its constraints include: new, the method should return a new object that is not Null; this, the method should return a non-Null this point; and paramX, the method should return the Xth parameter.
Stream API support has also been improved. It will show unnecessary sorting operations and incorrect use of collectors (Collector) or collections (Colleciton). In addition, it adds a warning about redundant calls to the distinct () method before the collect () (toSet ()) method.
The debugging of the Java project has also made a lot of improvements. If developers use the Alt+ enter key in combination with some other available Intension, they may see three new breakpoint intentions: stop only only in the class, non-stop in the class, and stop only in the current object. In addition, a new Caller filter is provided in debugging that allows developers to stop at only one breakpoint when a specified method call is made, or skip a breakpoint from a specified method call.
User interface
The new version also delivers a series of user interface improvements. IDEA now directly supports MacBook's Touch Bar and displays the TouchJ IDEA button in the middle of the Touch Bar interface. This allows developers to run, debug, commit changes, and update projects directly from Touch Bar. For IntelliJ themes on macOS, the title bar is now supported in a darker way, and some new icons have been added. The IntelliJ theme on Linux has also been updated.
Scala
IntelliJ IDEA has made several improvements to the Scala plug-in. It allows developers to view implicit conversions and parameters as inline prompts, and to browse and expand the display of information in a prompt tool (Tooltip). Now the Scalafmt formatting tool has been added to the Scala plug-in. To configure the Scala plug-in, click the menu item "Preferences/Settings" > "Editor" > "Code Style" > "Scala".
The automatic completion of type tagging and pattern matching functions have also been improved. If possible, the Scala plug-in gives a recommended set of type patterns for classes and interfaces, as shown in the following figure:
JavaScript/Typescript
2018.2 also improved support for JavaScript and TypeScript. Developers can use the new Extract Component refactoring feature to create a new React component, use the new Code Coverage feature to discover JavaScript/TypeScript code that is not used on the client, and do manual functional tests on the code. To do this, developers need to use Code Coverage to start a JavaScript Debug configuration and interact with applications in Chrome. After the configuration is complete, IntelliJ IDEA will give you a code coverage report in the Coverage tool window.
In addition, developers can use a range of JavaScript and TypeScript intentions, such as implementing interfaces, creating derived classes, implementing interface or abstract class members, generating case in switch statements, and using "for..of" to implement iterative operations.
Spring
A new Spring Integration Diagram has been added in 2018.2. It uses XML or Java annotations to show the configuration of Spring applications, including gateway, channel, bridge, and so on.
2018.2 has made some improvements for Spring Boot applications. The new Diagram Model allows developers to visualize the dependencies between Bean when Spring Boot applications are running. Developers can manage HTTP request mappings through Run Dashboard.
DockerIDEA's Docker plug-in is becoming more and more mature. New supported features include support for Docker log line wrapping (wrap word) using the new Use Soft Warps operation. Developers can also browse the corresponding Compose and Docker files from Compose nodes and containers. In addition, it is now supported to define a root directory for executing docker build commands for Docker files. At this point, I believe you have a deeper understanding of "what features IntelliJ IDEA2018.2 supports". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.