Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 908
user1766080 Avatar asked Jan 20 '13 10:01

user1766080


1 Answers

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}.

like image 75
Lolmewn Avatar answered Sep 27 '22 23:09

Lolmewn