Tips: Improve coding efficiency and enter quickly: App app = new App();

Do you think new is a very long class, very annoying, very crazy! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !

 Entering App app = new App(); in the IDE is very fast, but it is annoying to enter a very long class and take the instance name.

Today I suddenly found a way to enter quickly.

The first step: Enter new A and "Enter" after the matching class appears.

new Ap
输入一半时,IDE一般都有显示可匹配的下拉列表,这个时候出现需要的类,<回车>

This time it will be like this

new App()

Step 2: Enter .var and press Enter.

new App().var  <回车>

Eventually, appeared

App app = new App();

He will let you choose the variable name, and then press Enter after you have chosen it. This is how to quickly enter App app = new App();.

 

There are similar:

.var automatically generated variables

.if Automatically generate if conditions

.while automatically generates while

.try automatically generates try

and many more

Guess you like

Origin blog.csdn.net/x18094/article/details/113949646