How to get Save or Save All event in VSIX 2022 project

Ankita 0 Reputation points
2023-03-15T10:33:43.1066667+00:00

I am working on Visual Studio 2022 VSIX project.

I am looking for event which trigger when user Save/Save all in the Visual Studio. In that event I need to capture name of the file which has been Saved and if Save all then all active opened files with its content.

I have gone thru this but not able to get exact event on which I get all information from DTE. I have referred different kind of editor template but not getting expected result.

Thanks in advance.

Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
189 questions
{count} votes