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
Please sign in to leave a comment.
You can obtain Document corresponding to the PsiFile via PsiDocumentManager::getDocument and pass it to FileDocumentManager::saveDocument.