[英]How to default Visual Studio 2019 Script Documents to minimized?
I'm using Visual Studio 2019 and I'm debugging an angular spa app. 我正在使用Visual Studio 2019,我正在调试角度spa应用程序。 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. 我知道为什么它在这里以及为什么它有时是有用的,但99%的时间我想隐藏它。
The JavaScript debugging is working fine and I do not want to turn it off. JavaScript调试工作正常,我不想将其关闭。 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. 这是VS的一个问题,可以追溯到很多版本,今天仍然存在问题。
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. 我参与的工作与2014年为VS2013建议的相同,即右键单击您最感兴趣的VS中的项目,然后单击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 https://stackoverflow.com/a/24116987/95041
As @Cory pointed out, there is a feature request. 正如@Cory指出的那样,有一个功能请求。 If this problem is affecting you, please upvote so it gets fixed. 如果这个问题影响到你,请upvote以便修复。 https://developercommunity.visualstudio.com/idea/351537/provide-a-way-to-prevent-the-script-documents-fold.html https://developercommunity.visualstudio.com/idea/351537/provide-a-way-to-prevent-the-script-documents-fold.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.