File templates - lower, upper, camel case
I have a few file templates to generate stub Java classes.
It works well but how can I use passed variable to make field definition?
For instance I pass MyClass as the param and in stub it's:
private MyClass myClass;
public MyClass getMyClass() {
return myClass;
}
public void setMyClass(MyClass myClass) {
this.myClass = myClass;
}
So the question is how to make camel case name from the class name in the template?
Please sign in to leave a comment.
http://youtrack.jetbrains.com/issue/IDEA-107709 should allow you to use Velocity's StringUtil in file templates. Is this sufficient for your needs?
Yes, it seems good. I will test it. Thank a lot.
I tried using this in IntelliJ and CLion and got the following error.
Code:
Error:
Please try $StringUtils
Is this available on IDEA Ultimate since it doesn't even recognise $StringUtils.
nevermind it works when you encapsulate fully