Saturday, 9 January 2010

Exporting Code Templates from NetBeans

After upgrading to NetBeans 6.8 I realized I no longer had the custom code templates I had put together. Although NetBeans has functionality to export settings, the code templates are not included. There is an issue raised in Mozilla about this: https://netbeans.org/bugzilla/show_bug.cgi?id=99494.

Fortunately there is a workaround, as described in this comment:
In fact there is a workaround for this, the codetemplates are stored in an xml file in your userdir - eg.[userdir]/config/Editors/text/x-java/abbreviations.xml. You can copy this file over to your mates' userdir and they should see the same codetemplates in their IDEs.
This worked for me.

No comments:

Post a Comment