Newbie - please help: How can I import and export VS settings programmatically  
Author Message
Michael Schreyer





PostPosted: Visual Studio Extensibility, Newbie - please help: How can I import and export VS settings programmatically Top

Is it possible to export and reimport certain settings like the Favorites bookmarks programmatically

I want my Addin to load particular settings depening on project type and language thats currently active.

I'm waiting for days, for a reply, hint, advice or something.
Just can't belive that there should be no way to work arround this problem.

 



Visual Studio21  
 
 
Craig Skibo





PostPosted: Visual Studio Extensibility, Newbie - please help: How can I import and export VS settings programmatically Top

There are programmatic interfaces to importing and exporting settings that you can use to read and write from the data store used for settings.

Craig



 
 
280Z28





PostPosted: Visual Studio Extensibility, Newbie - please help: How can I import and export VS settings programmatically Top

Do you have a link to information about such an interface Your post is useless as is.

Edit: I found it using DTE2.ExecuteCommand with Tools.ImportandExportSettings as the command.


 
 
Michael Schreyer





PostPosted: Visual Studio Extensibility, Newbie - please help: How can I import and export VS settings programmatically Top

Hi,

thanks for your reply.

I also found the Tools.ImportandExportSettings command, but it's not possible to export just a subset of the current settings - as far as I know.

Think the only way to save e.g. the windows layout to a file,  and import it later again, is to do the export manually.

I've read it should be possible to programmatically export parts of the settings with the VSIP API.