How to generate kotlin file with existing code ?
Answered
I want generate a kotlin file in a apecified package with an existing code? How to do this?
Please sign in to leave a comment.
Boybeak,
To create a new file, please refer to the PsiFileFactory.createFileFromText methods. You'll be able to pass any Language, name, or content that you need.