Hide Class-View in Solution Explorer

后端 未结 8 2001
名媛妹妹
名媛妹妹 2020-12-24 02:17

Is there a way to hide the classes-inside-a-file in solution explorer?

It adds to the \"noise\" there. The drop-down triangles are quite confusing - I want to immedi

相关标签:
8条回答
  • 2020-12-24 02:38

    For VS2017 use Disable Solution Explorer's Dynamic Nodes extension github

    0 讨论(0)
  • 2020-12-24 02:41

    If you install the extension VSCommands, you have a setting to disable this. http://vscommands.squaredinfinity.com/

    Go to Tools -> Options -> VSCommands 12 and press the "Open Configuration" button.

    Now the configuration screen of VSCommands will open. Go to "Solution Explorer" under "IDE Enhancements". Now check the checkbox "Disable Graph provider" and restart Visual Studio.

    Now the classes inside a file should not be visible anymore in the Solution Explorer.

    0 讨论(0)
  • 2020-12-24 02:42

    For VS2019 it's the same registry hack

    Computer\HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\16.0_<id>

    Add new DWORD UseSolutionNavigatorGraphProvider set to 0

    0 讨论(0)
  • 2020-12-24 02:47

    info from this link

    Still some people never use the Solution Explorer to navigate the code symbols and methods. In this case expansion arrows on code files only create distraction in the Solution Explorer window. There is no option to control the availability of file expansion, but there is the UseSolutionNavigatorGraphProvider dword registry value (discovered by Julien Lebosquain) that you can set to 0 to disable class view in Solution Explorer. The registry key for this value is HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0 for Visual Studio 2012 and HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0 for Visual Studio 2013 correspondingly:

    it's makes sense for you?

    0 讨论(0)
  • 2020-12-24 02:48

    or in VS Command prompt:

    vsregedit set "%VSINSTALLDIR%/" HKCU "" UseSolutionNavigatorGraphProvider dword 0
    
    0 讨论(0)
  • 2020-12-24 02:49

    Use registry editor to set UseSolutionNavigatorGraphProvider value in HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0 to 0. Or save the following lines into a file called "patchsolutionexplorer.reg" or something like this and import it into the registry:

    Windows Registry Editor Version 5.00
    
    [HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\12.0]
    "UseSolutionNavigatorGraphProvider"=dword:00000000
    
    0 讨论(0)
提交回复
热议问题