How to save files?

I tried e.getProject.save() in actionPerformed(AnActionEvent e) but it does not seem to be saving consistently. How do I save the current all the current edited files in the project?

Thanks!

2 comments
Comment actions Permalink

I tried FileDocumentManager.getInstance().saveAllDocuments(); and it works, but I m wondering what does project.save() do?

0
Comment actions Permalink

It saves the project file(s) (.ipr or .idea/*.xml).

0

Please sign in to leave a comment.