如何暂时禁用Visual Studio自动生成的事件? [英] How to temporarily disable Visual studio auto generated events?

查看:137
本文介绍了如何暂时禁用Visual Studio自动生成的事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全部

我已经完成了GUI设计阶段...现在,我开始为我的应用程序中的所有控件添加有意义的名称.每次单击控件以更改其名称时,Visual Studio都会使我发疯,自动生成事件(好的,所以只有在我弄乱并双击后才会发生,但是仍然很烦人).

I have finished the GUI design phase... Now I've started to add meaningful names to all the controls in my application. Visual Studio is driving me nuts auto generating the events each time I click on the control to change its name (ok so it only happens when I mess up and double click... but still annoying).

有没有办法暂时禁用此功能?我仍然想要它,因为这是我编写代码时的捷径.

Is there a way to temporarily disable this feature? I still want it because it is a great short cut when I'm coding.

谢谢!

推荐答案

您不能禁用双击AFAIK,但是可以打开文档大纲(菜单视图">其他Windows">文档大纲"),然后在此通过F2重命名控件.窗户.如果您的表单很复杂,它将更快,并且将有助于轻松地查看视觉树.

You can't disable double clicking AFAIK but you can open document outline (Menu View > Other Windows > Document Outline), and rename the controls via F2 in this window. It'll be much faster and will help see easily the visual tree if your form is complex.

这篇关于如何暂时禁用Visual Studio自动生成的事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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