简体   繁体   English

停止继续测试在 Visual Studios 2017 和 Resharper 中窃取光标的重新编译

[英]Stopping Continues Testing recompilation stealing cursor in Visual Studios 2017 and Resharper

I have just started out on my journey to learn TDD with C# and to help me I have started using Reshaper 2017.1.3 Continues Testing tool to re-run all my tests that are affected by my modifications upon saving.我刚刚开始使用 C# 学习 TDD 并帮助我开始使用 Reshaper 2017.1.3 继续测试工具来重新运行我保存时受修改影响的所有测试。 I was hoping this would be a seamless experience with no interruptions to development but every time the projects need to be recompiled the cursor is stolen from the editor and placed inside the Output Pane which leads to a halt in development.我希望这将是一种无缝体验,不会中断开发,但每次需要重新编译项目时,光标都会从编辑器中窃取并放置在输出窗格中,这会导致开发停止。

Is there any way to stop this behaviour without having to sacrifice the convince of the Continues Testing tool?有没有办法阻止这种行为而不必牺牲继续测试工具的说服力?

This might be Visual Studio behaviour - try unchecking the "Show output window when build starts" option in Tools → Options → Projects and Solutions → General. 这可能是Visual Studio行为 - 尝试取消选中工具→选项→项目和解决方案→常规中的“在构建开始时显示输出窗口”选项。

If this doesn't help, please report an issue: youtrack.jetbrains.com 如果这没有帮助,请报告问题: youtrack.jetbrains.com

In my case I wanted to keep the focus in the editor after running my program and this solution is still available in 2021 for Visual Studio 2019.就我而言,我希望在运行我的程序后将焦点保持在编辑器中,并且该解决方案在 2021 年仍可用于 Visual Studio 2019。

Here is a screenshot for Visual Studio in French:这是法语版 Visual Studio 的屏幕截图:

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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