Author: Programmer DD
Blog: https://blog.didispace.com/

Yesterday I just talked to you about Jetbrains is about to launch a lightweight editor Fleet to challenge VS Code, and today I received the push of the official release of IntelliJ IDEA 2021.3.

Don't talk nonsense, let's take a look at the amazing features this version brings with us!

remote development

The remote development in this version is not an official version, but a BETA version, but through this BETA version, you can also experience the brand new experience that IDEA "remote development" brings to us.

With the support of this feature, we can easily connect to a remote computer running IntelliJ IDEA backend from anywhere in the world. All processing will be done on this powerful remote computer, and you will be able to work on the project as seamlessly as on your local computer.

How to use it? As shown above, we only need to activate this function on the welcome screen of IntelliJ IDEA or through the newly added JetBrains Gateway application in Toolbox App.

In addition to completing our daily coding, this remote development function can also be linked with JetBrains Space to provide excellent choreography support. Users can create a development environment for any warehouse in the project. You can also select the environment parameters to be started, and at the same time create a mirror through the Dockerfile. All repetitive and boring operations such as environment preparation, dependency downloading, and project construction after development can be well supported.

IDE problem troubleshooting

Sometimes, our IDEA will have some accidents inexplicably, and then it will not work properly. In the past, we all searched for solutions based on error search engines, and then tried to solve them manually, and this function is to optimize this process.

We can find this function in the File menu, as shown in the figure below:

After clicking Repair IDE, a series of steps will be entered to help you solve the cause of the failure and guide you to complete the repair operation.

Shortcut adjustment of font size

who are used to Eclipse must know that there is a function to hold down 161a859eb7c6f8 Ctrl+mouse wheel or ⌘+mouse wheel (MacOS users). This is a very useful shortcut when we read the code.

In this update, this feature has finally been arranged! How smooth is it? Take a look at the demo below:

Markdown table optimization

Friends who are used to writing documents in Markdown should all have a headache for table markup, because a large amount of | is needed for stitching. This new function only requires us to use mouse right-click , and select I nsert-Table to complete the quick insertion of the table; at the same time, when writing the table content, you can also use + and 161a859eb7c775 Tab Navigate to the next cell.

Check for unsafe strings in Java

IntelliJ IDEA now warns against dangers such as SQL injection and XSS flaws, sensitive data leakage, and unsafe deserialization. It also prevents you from passing unsafe data to safe methods.

To enable this check, you need to annotate the string with @Untainted ("safe") or @Tainted ("unsafe"). These annotations will take effect after adding the org.checkerframework.checker.tainting.qual dependency. The specific operations are as follows:

of code refactoring operation in Java

When introducing local variables, the applicable settings will no longer appear in the pop-up window, and the pop-up window will overwrite the code you wrote before. After the update, you can click the gear icon next to the variable or use the ⌥⇧O shortcut on macOS or Alt+Shift+O on Windows to access these options.

This time also improved the refactoring of the introduced formal parameters. When you use ⌥⌘P on macOS or Ctrl+Alt+P on Windows and Linux to invoke this refactoring, the IDE will ask you where you want to replace matches. After the selection is completed, a gear icon will appear, click the icon to configure more settings for the reconstruction.

Some Spring-supported improvements

  1. The new Run/Debug Configurations dialog box of the Spring Boot project provides more parameters that can be adjusted:

  1. Actively discover possible blocking situations, including Spring Data's JpaRepository and CrudRepository, RestTemplate and JdbcTemplate, Spring Feign interface methods, JPA EntityManager calls, and methods and classes annotated as @Transactional.

  1. When the spring.config.import key is used to reference another file, IntelliJ IDEA will provide code completion in additional configuration files (properties or yaml files)

  1. @Value, @Scheduled and Environment.getProperty() can find the configuration in application.yaml to complete the automatic completion

The above is only part of the content that we think is good. I will organize it for you to introduce. If you want to know more about the updated content of the 2021.3 version, you can also check the official document through the link below: https://www.jetbrains.com /idea/whatsnew/

Welcome to pay attention to my official account: Program Ape DD, to share knowledge and thoughts that can’t be seen elsewhere

程序猿DD
2.2k 声望2.8k 粉丝

作品:《Spring Cloud微服务实战》、SpringForAll社区、OpenWrite、Youtube中文配音