Get the App
SLTechnology News&Howtos  ›  Development  › 

How to achieve suffix completion in IDEA Agile Development skills

Shulou Source: shulou.com Published: 2022-06-03 04:07:35 11月15日 Update

This article introduces the knowledge of "how to achieve suffix completion in IDEA Agile Development skills". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Today's tips:

Suffix completion

Custom suffix completion template

Example

.sout example

.if example

The above dynamic diagram uses .sout .if as an example, which is believed to be often used by some partners at work. If you haven't used it, it's okay. Give it a try.

Custom suffix template

Because when printing logs, in order to facilitate log viewing, entities are usually printed as Json (performance issues are ignored first).

You can then use this method to customize the template completed with the suffix.

.jsons template

Doesn't it feel much more convenient in an instant?

How to customize suffix templates

Windows and Linux:

File-> Settings-> Editor-> General-> Postfix Completion

MacOS

IntelliJ IDEA-> Preferences-> Editor-> General-> Postfix Completion

In short, just set up the page, find Postfix Completion, not (Live Templates).

Postfix Completion Settin

There is a picture in the lower left corner to create a new template.

Of course, you can also use pictures, pictures to delete, edit, copy.

Configure .jsons

Note:

With the full class name, the import is automatically generated, and the package name is omitted.

Apply to the topmost expression did not check.

That's all for the content of "how to achieve suffix completion in IDEA Agile Development skills". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Tags: Suffixes templates pictures techniques examples agility development content logs time more knowledge practicality achievement next dilemma entity reality guys buddies Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker MariaDB NVidia Shulou Information Redmi