Reputation: 65544
How do I programmatically set and unset Visual Studio Options?
I have done the research and troubleshooting and apparently it is not possible.
Here is a question I answered specifying why it's not possible to programmatically click buttons in the VS Options Dialog: Programmatically reset VisualStudio shortcuts.
I don't need to click a button, I need to change a boolean setting as per the screenshot.
Might there be any undocumented methods I can use?
Upvotes: 1
Views: 1402
Reputation: 5577
Just use:
dte.Properties["Debugging", "General"].Item("EnableExceptionAssistant").Value=false;
Most of the options can be retrieved and set this way. See also:
Options Page, Debugging Node Properties
HOWTO: Getting properties from the DTE.Properties collection of Visual Studio .NET.
Upvotes: 4
Reputation: 1982
You'd have to write code to change the following registry key.
HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0\ApplicationPrivateSettings\_metadata\revisions\Microsoft\VisualStudio\Platform
TitleCaseMenus is the node you're after :)
You may need to change the Visual Studio version number depending on what you have installed.
Edit: For your new pic the registry key is here:
HKCU\SOFTWARE\Microsoft\VisualStudio\14.0\Debugger\UseExceptionHelper
Upvotes: 2