Object obj = new Object();As behind the curtains the expression is
all you have to do is change the type and note how the IDE at the same time changes the name of the variable setting the first letter in lowercase, e.g. if you hit newo TAB MyObject the result will be
${TYPE default="Object"} ${OBJ newVarName default="obj"} = new ${TYPE}(${cursor});
MyObject myObject = new MyObject();Neat and clean :-)
2 comments:
That's nice. I've been using "n <tab>" for quite a while, but it doesn't change the variable name.
Great! it works perfectly on my NetBeans 6.9.1! Thanks for the hint!
Post a Comment