简体   繁体   English

如何将Visual Studio 2019脚本文档默认为最小化?

[英]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.

相关问题 如何在 Visual Studio 2019 中更改默认浏览器? - How to change default browser in Visual Studio 2019? Visual Studio 2019 显示 github 文档已修改 - Visual Studio 2019 shows github documents modified Visual Studio 2019:如何为调试器配置默认 CLR? - Visual Studio 2019: how to configure the default CLR for the debugger? 在 Visual Studio 中调试时如何忽略 jQuery 断点,或者是否可以在 Visual Studio 2019 中黑盒 js 脚本? - How to ignore jQuery breakpoints when debugging in Visual Studio or Is it possible to blackbox js script in Visual Studio 2019? SSIS Visual Studio 2019 中缺少“脚本任务” - "Script Task" missing in SSIS Visual Studio 2019 Visual Studio 解决方案资源管理器 - 脚本文档的烦恼 - Visual Studio Solution Explorer - Script Documents annoyance Visual Studio 2019 深色主题:如何使用默认语法突出显示将代码复制并粘贴到 MS Word? - Visual Studio 2019 dark theme: How to copy and paste code to MS Word with default syntax highlighting? 是否可以在 Visual Studio 2019+ 中更改默认 XML 注释? - Is it possible to change default XML comments in Visual Studio 2019+? Visual Studio 2019:查找和替换默认不搜索 *.sql - Visual Studio 2019: Find and Replace does not search *.sql by default Visual Studio 2019 - 为文件类型设置默认扩展名 - Visual Studio 2019 - Set a default extension for a file type
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM