user1766080
user1766080

Reputation: 631

Netbeans often used code snippets

i need this:

{{ _('') }}

very often and get tired by typing it again over and over.

Is there a netbeans function where i can create a shortcode for that? Si if i press a key combination it insert this thing?

And i dont want to use copy and paste ;)

Thanks

Upvotes: 5

Views: 6612

Answers (1)

Lolmewn
Lolmewn

Reputation: 1521

There is. If you go to tools --> options --> Editor --> Code Templates, you can add a abbreviation and the Expanded text to make it.

For example, when I type syso and hit the Tab button, it makes it System.out.println("${cursor}");, where the cursor is at ${cursor}.

Upvotes: 14

Related Questions