I am running Netbeans 7.0.1 under OS X and have created a number of templates using Tools > Templates. All my Templates are created under a new folder within the Templates folder list.
I would now like to export the Templates and share them with other members of my team.
How do I go about exporting them and then allowing my teammates to import them into their Netbean installs?
Note: I've located the templates under my ~/.netbeans directory, but was hoping the IDE would facilitate import/export so folks don't have to go around copying folders in the file system.
I have just tested on my WinXP with Netbeans 7.0.1 and 7.1, so not 100% sure if it will work on OS X.
Open your Netbeans 7.0.1 and go to Tools -> Options
and in the new windows left lower corner Export
. In this window expand Editor
by clicking +
.
In the opened tree you only have to activate the checkbox in front of Code Templates
, fill in a target file and there you are with your ready to import Templatesfile.
Your team members can import them by clicking Import
in Tools -> Options
.
Hope this will help you and your members.
Templates are saved in you ~/.netbeans/version/config/Templates/Properties
. You can import your template using :
Tools --> Templates --> Choose a directory then click "Add" button.
If you need more info maybe this tuto can help you.
Or in
Tools -->Options --> Editor pane --> Code templates pane
Choose your language, then at the bottom left you will found Export
and Import
button.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With