Key_coder
Key_coder

Reputation: 536

How to create a shortcode in Eclipse

Correct me if i'm using any wrong term (I don't know exactly what this feature is called)

Is there any Option/Plugin for creating my own short code for java in Eclipse IDE

Just like these short-code represent

syso --> System.out.println();


syse --> System.error.println();


fori --> for(int i=0;i<args.length;i++){}

Upvotes: 2

Views: 1294

Answers (2)

Sagar Pudi
Sagar Pudi

Reputation: 4814

Yes, It is possible with eclipse custom templates.

Open Window -> Preferences and type Templates into the search box.

enter image description here

Refer this official help guide to understand easily.

Upvotes: 2

greg-449
greg-449

Reputation: 111142

These are 'Templates'.

You can create your own in 'Preferences > Java > Editor > Templates'

Upvotes: 2

Related Questions