Is there a way to automatically collapse the Script Documents section in solution explorer?

后端 未结 6 1504
灰色年华
灰色年华 2021-01-31 07:10

While in debug mode, the solution explorer has a Script Documents section. It is expanded by default. As the debugger runs, new ScriptDocumentxxx poll.txt files a

相关标签:
6条回答
  • 2021-01-31 07:37

    Right click the projects you are interested in working on and click on 'Scope to this'. This will hide everything (Including the scripts folder) except those projects you selected.

    Visual Studio 'scope to this' example

    0 讨论(0)
  • 2021-01-31 07:42

    Yes there is. One way is to create a visual studio add-in or extension which monitors the solution explorer tree and collapses the "script documents" -item if it is expanded.

    If you need code samples and/or a fully functional add-in just let me know. You have Visual Studio 2013, ay? Is it the express edition or what?

    0 讨论(0)
  • 2021-01-31 07:43

    This is confirmed bug in VS 2019. Just Microsoft is not so fats about fixing it. https://developercommunity.visualstudio.com/content/idea/351537/provide-a-way-to-prevent-the-script-documents-fold.html

    0 讨论(0)
  • 2021-01-31 07:54

    Yes, there is.

    IIS Express > Script Debugging > Disabled

    0 讨论(0)
  • 2021-01-31 07:55

    Right click then 'Scope to This' to hide everything but the project in the solution you want to view.

    Click on the Home/House icon to reverse it.

    0 讨论(0)
  • 2021-01-31 08:00

    I got annoyed enough with this that I turned off JavaScript debugging. If you are willing to go that far, the scripts are gone.

    The path for turn of JS debugging is:

    Tools -> Options -> Debugging -> General -> Enable JavaScript debugging for ASP.NET (Chrome, Edge and IE) (Visual Studio 2017 and 2019)

    Note: This method does not prevent you from stepping though JS in the Chrome inspection tools so you do not lose that ability. You lose both the scripts (of course) and that new Chrome window that pops up when you launch the debugger.

    0 讨论(0)
提交回复
热议问题