user1379280
user1379280

Reputation: 337

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

Upvotes: 0

Views: 150

Answers (1)

yole
yole

Reputation: 97138

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.

Upvotes: 1

Related Questions