user111
user111

Reputation: 397

Save all changes programmatically

I am making a VS Extension and as part of the application,I would like to save all changes that the user made in the editor and then build the Project. How can I do that programmatically?

EDIT: My question is VERY different from the question being marked as a duplicate question. The other question has to do with handling an event that is fired when the user clicks "Save All" while my question is asking how to SaveAll() programmatically

Upvotes: 1

Views: 281

Answers (1)

user111
user111

Reputation: 397

dte.Documents.SaveAll() does the trick.

Upvotes: 2

Related Questions