Back to Intellij Community

New Kotlin Secondary Constructor Body.Kt

plugins/kotlin/base/resources/resources/fileTemplates/code/New Kotlin Secondary Constructor Body.kt.html

2025.3-rc-2597 B
Original Source

| Fills the body of a Kotlin secondary constructor each time it is generated by the program, for example, when using the Create secondary constructor from Usage intention action.
The template is editable. Along with Kotlin expressions and comments, you can also use the predefined variables that will be then expanded into the corresponding values. |

| Predefined variables will take the following values: | | ${CLASS_NAME} | | qualified name of the class where function is created | | ${SIMPLE_CLASS_NAME} | | non-qualified name of the class where function is implemented |