Best Practice to save a psifile?

Answered

Hello,

I have a PsiJavaFile and change something at it, and now I want to save or write to disk the changes.

How can I do this in a correct way?

regards 

Chris

0
1 comment

You can obtain Document corresponding to the PsiFile via PsiDocumentManager::getDocument and pass it to FileDocumentManager::saveDocument.

0

Please sign in to leave a comment.