IDEA custom dynamic template

Friends who are used to eclipse may know that entering main in the code editing window will dynamically prompt:

Press the enter key to generate the standard main method code block:

very convenient.
Similarly, you can enter the standard printing code that appears in syso.
But we found that in IDEA, syso is invalid.
So how does IDEA define this dynamic template?
We can see it in the IDEA dynamic template. (File-> Setting-> Editor-Live Templates).

In IDEA, it is sout to complete the content of syso in eclipse.

The dynamic template already designed by the tool in the screenshot can be printed by syse.

Therefore, we can define the code blocks that we often knock, and we can write large sections of code through shortcut input to improve coding efficiency.

Published 142 original articles · praised 258 · 160,000 views

Guess you like

Origin blog.csdn.net/conconbenben/article/details/103652999