locked
Remove "Exception Settings" command in VS Isolated Shell 2015 RRS feed

  • Question

  • Hello,

    I have almost finished a desktop application with VS Isolated Shell. I have recently moved from VS 2013 to VS 2015. I had to do minor changes and everything is OK... except for the fact that a new "Debug -> Windows -> Exception Settings" command, which were not in VS 2013, has been included in VS 2015.

    When I open a file, "Exception Settings" is available under "Debug -> Window" menu. As you can imagine, this behavior is not desirable for my application, this "Exception Settings" has no sense in my software and I need to remove it.

    I'm trying hard to find the package or tool window GUID to put in .pkgundef file to prevent "Exception Settings" to load. I have found in the registry VSDebugCoreUI.ToolWindows.ExceptionSettings.ExceptionSettingsToolWindow. If I write in .pkgundef:

    // TEST: Exception Settings tool window
    [$RootKey$\ToolWindows\{605322a2-17ae-43f4-b60f-766556e46c87}

    or:

    // TEST: DebugCoreUIPackage
    [$RootKey$\Packages\{d549bc66-c17b-4409-8729-583e60dc0bc1}

    the result is the opposite, not only "Exception Settings" appears but other commands.

    Maybe I need to edit .vssettings or other file, but I don't know how to do it. I can't find the proper documentation.

    Please, I would need some help.

    Thanks.

    Pedro.
    Wednesday, December 28, 2016 6:04 PM

Answers

  • Solved. Short answer: just include in General.vssettings file (in main project, under Shell Customization folder), under <UserCustomizations> section, next code:

    <remove Cmd="{5EFC7975-14BC-11CF-9B2B-00AA00573819}:00000153" CmdPri="012c0000" Group="{C9DD4A58-47FB-11D2-83E7-00C04F9902C1}:00000002" GroupPri="01000000" Menu="{C9DD4A58-47FB-11D2-83E7-00C04F9902C1}:00000402" IsPartialRemoval="false"/>

    "Exception Settings" is removed.

    Long answer: To remove any command from any menu, follow next steps:

    1. Go to Tools -> Import and Export Settings, export current environment settings to a .vssettings file.
    2. Right click on the menu bar and chose Customize... Remove the command you like.
    3. Again, go to Tools -> Import and Export Settings, export environment settings to a new .vssettings file.
    4. Check the differences between the two files. This can be achieved with the online tool diffchecker.com. If you have deleted one command, a new line should be added to .vssettings file.
    5. Copy this new line in General.vssettings file as explained at the beginning.

    To force this new settings to be loaded, delete folders corresponding to application under <USERFOLDER>\AppData\Roaming and <USERFOLDER>\AppData\Local. Also delete registry key under HKEY_CURRENT_USER\SOFTWARE.

    In the absence of good documentation, we can help each other.

    Pedro.





    • Edited by pintope Thursday, December 29, 2016 10:42 AM
    • Marked as answer by pintope Thursday, December 29, 2016 10:42 AM
    Thursday, December 29, 2016 10:39 AM

All replies

  • Solved. Short answer: just include in General.vssettings file (in main project, under Shell Customization folder), under <UserCustomizations> section, next code:

    <remove Cmd="{5EFC7975-14BC-11CF-9B2B-00AA00573819}:00000153" CmdPri="012c0000" Group="{C9DD4A58-47FB-11D2-83E7-00C04F9902C1}:00000002" GroupPri="01000000" Menu="{C9DD4A58-47FB-11D2-83E7-00C04F9902C1}:00000402" IsPartialRemoval="false"/>

    "Exception Settings" is removed.

    Long answer: To remove any command from any menu, follow next steps:

    1. Go to Tools -> Import and Export Settings, export current environment settings to a .vssettings file.
    2. Right click on the menu bar and chose Customize... Remove the command you like.
    3. Again, go to Tools -> Import and Export Settings, export environment settings to a new .vssettings file.
    4. Check the differences between the two files. This can be achieved with the online tool diffchecker.com. If you have deleted one command, a new line should be added to .vssettings file.
    5. Copy this new line in General.vssettings file as explained at the beginning.

    To force this new settings to be loaded, delete folders corresponding to application under <USERFOLDER>\AppData\Roaming and <USERFOLDER>\AppData\Local. Also delete registry key under HKEY_CURRENT_USER\SOFTWARE.

    In the absence of good documentation, we can help each other.

    Pedro.





    • Edited by pintope Thursday, December 29, 2016 10:42 AM
    • Marked as answer by pintope Thursday, December 29, 2016 10:42 AM
    Thursday, December 29, 2016 10:39 AM
  • Hi pintope,

    I am glad to know you solved this problem and thanks for sharing the solution. 

    It will be very beneficial for other community members who have the similar questions.

    Best regards,

    Cole Wu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, December 30, 2016 1:18 AM