Visual Studio:如何阻止断点从窃取焦点? [英] Visual Studio: How to stop breakpoint hit from stealing focus?

查看:165
本文介绍了Visual Studio:如何阻止断点从窃取焦点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在Visual Studio中断点 时,程序员其他应用程序中从焦点正在查看/打字在那一刻。这可能非常刺激,因为VS抓住程序员在那一刻打入其他应用程序的任何键盘输入,并将该输入作为自己的输入。

When a breakpoint is hit in Visual Studio, it steals the focus from whatever other application the programmer is viewing/typing into at that moment. This can be very irritating since VS grabs any keyboard input the programmer was typing into the other application at that moment and takes that input as its own.

你的技巧是什么人们用来防止这种焦点窃取?

What are the tricks you folks use to prevent this focus steal?

(我在Visual C ++ 2008和2010上面对这一点。我猜这是一般的Visual Studio和所有最近的问题版本。)

(I face this on Visual C++ 2008 and 2010. I am guessing it is a problem for Visual Studio in general and for all recent versions.)

推荐答案

这是一个注册表设置。请参阅 http:/ / /technet.microsoft.com/en-us/library/cc957208.aspx 。零允许应用程序窃取焦点。

This is a registry setting. See ForegroundLockTimeout at http://technet.microsoft.com/en-us/library/cc957208.aspx. Zero allows applications to steal focus. TweakUI sets this value to 200000 when "Prevent applications from stealing focus" is checked.

要更多的控制,请下载 Tweak UI 适用于Windows XP的Powertoys实用程序。在常规选项卡中,选择对焦,然后选中防止应用程序窃取焦点。

For more control, download the Tweak UI utility of Powertoys for Windows XP. In the "General" tab, select "Focus" and check "Prevent applications from stealing focus".

Bing搜索防止应用程序窃取焦点 http://www.bing.com/search?q=Prevent+applications+from+stealing+focus

应用程序窃取专注于Windows XP http://mycvs.org/archives/2004/11/16/applications-stealing-focus-on-windows-xp 用于 TweakUI 的屏幕捕获。

请不要偷我的焦点,编码恐怖,Jeff Atwood at http://www.codinghorror.com/blog/2007/12/please-dont-steal-my -focus.html

Please Don't Steal My Focus, Coding Horror, Jeff Atwood at http://www.codinghorror.com/blog/2007/12/please-dont-steal-my-focus.html


奇怪的是,在
内部有
条款系统保护我们免受严重的
的书面,重点盗窃应用程序。
ForegroundLockTimeout 注册表
设置明确设计为
,防止应用程序从用户窃取
焦点。操作系统默认地
将不正确的焦点
的窃取行为转换为更友善的,
较少侵入性的任务栏按钮闪烁,
这是
的主题 ForegroundFlashCount 注册表设置。

The strange thing is, there are provisions built into the operating system to protect us from badly written, focus stealing applications. The ForegroundLockTimeout registry setting is expressly designed to prevent applications from stealing focus from the user. The OS silently converts that inappropriate focus stealing behavior into friendlier, less invasive taskbar button flashing, which is the subject of the ForegroundFlashCount registry setting.


  • 如何防止程序在Windows XP中窃取焦点 a href =http://www.howtodothings.com/computers-internet/how-to-prevent-programs-from-stealing-focus-in-windows-xp =noreferrer> http:// www。 howtodothings.com/computers-internet/how-to-prevent-programs-from-stealing-focus-in-windows-xp

  • How To Prevent Programs from Stealing Focus in Windows XP at http://www.howtodothings.com/computers-internet/how-to-prevent-programs-from-stealing-focus-in-windows-xp

    这篇关于Visual Studio:如何阻止断点从窃取焦点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

  • 查看全文
    登录 关闭
    扫码关注1秒登录
    发送“验证码”获取 | 15天全站免登陆