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?

 
0
1 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.

 

0

Please sign in to leave a comment.