简体   繁体   中英

how to create a code template in IntelliJ IDE

so I want to create a short cut/ template for a few very frequent code lines such as

System.out.println("someVariablesInExistingScope as String ===>>>" +someVariablesInExistingScope);

so if I can create a template or short where i just type my shortcut such as shrtcut + CTRL + SPACE

and it types the above mentioned line

You need to create a live template. You can do so in the Settings dialog (Settings | Editor | Live Tempates).

See the IntelliJ IDEA help for more information.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM