Item template: Use uppercase for name
Answered
Hi,
is it possible to use the upper case version of the specified name in item templates? Imagine I want to create a new file called "myClass.ts" and specify the name "myClass", but the class name inside "myClass.ts" should be "MyClass" like
export default class MyClass { ... }
I am using the ${NAME} variable btw. I'd like to do something like $upperFirstLetter{NAME}
Please sign in to leave a comment.
File templates in IntelliJ platform works through Apache Velocity. You can try using the following template:
Thanks for that!
I'm not familiar with Apache Velocity, so thanks for the example.