Netbeans Code Templates

I like to use the swift-footed code templates to automatize certain repeating programming tasks. In other IDE’s or word-processor’s they are usually called macro.

You wonder where Netbeans saves the templates that come with the box ?
They are in a jar file !
@ ..\Program Files\NetBeans x.y\gsf1\modules\org-netbeans-modules-gsfpath-api.jar

And that one’s you add land
@ ..\Documents and Settings\userxyz\.netbeans\x.y\config\Editors\text\x-java\CodeTemplates\org-netbeans-modules-editor-settings-CustomCodeTemplates.xml

I still try to find out what kind of predefined variables I can use, eg. ${cursor}.

One thought on “Netbeans Code Templates

  1. Pingback: Netbeans Code Templates again « The JavaDude Weblog

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s