0

i want to make a code template in netbeans with the abbreviation of cn that will expand into the name of the current class being worked on, is there a way to do this? i cannot find anything about it. google won't turn up any good info

2
Contributors
2
Replies
4
Views
9 Years
Discussion Span
Last Post by sciwizeh
0

I didn't find much detailed documentation on the available parameters for code templates besides ${cursor} and ${selection} - even in the netbeans api docs themselves for the editor.codetemplates package.

File templates use ${name} for that, but it didn't work in the editor code templates.

0

oh well, i was just writing a class for a 3D vector and most of the math methods for it either returned or took as an argument an instance of the class, so it was bothersome to keep rewriting Vector3D every time it was needed and thought that writing cn would be much easier. well if anyone finds anything please post it

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.