简体   繁体   中英

How to default Visual Studio 2019 Script Documents to minimized?

I'm using Visual Studio 2019 and I'm debugging an angular spa app. The problem is that the 'Script Documents' section in the Solution Explorer that appears when you are debugging is really annoying.

I know why this is here and why it is sometimes useful, but 99% of the time I want to hide it.

The JavaScript debugging is working fine and I do not want to turn it off. I just want Script Documents to remain closed.

This problem is made worse when my angular app keeps rebuilding as I make changes. If I close Script Documents, it just re-opens when the app rebuilds. There has to be a way to hide it.

I've seen similar questions before but I haven't seen any clear answers.

So I have not yet figured out a way to do it. It was an issue in VS going back many versions and remains an issue today.

The work around I went with is the same one suggested in 2014 for VS2013, which is to right click on the project in VS that you are most interested in and click Scope to This.

This is a crappy solution but it works if you are having the problem, but you can't easily get back to the other projects in your solution. https://stackoverflow.com/a/24116987/95041

As @Cory pointed out, there is a feature request. If this problem is affecting you, please upvote so it gets fixed. https://developercommunity.visualstudio.com/idea/351537/provide-a-way-to-prevent-the-script-documents-fold.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM