Visual Studio中的键盘快捷方式创建事件处理程序存根 [英] Visual Studio keyboard shortcuts for creating Event handler stubs

查看:159
本文介绍了Visual Studio中的键盘快捷方式创建事件处理程序存根的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当您在设计视图编辑一个简单的页面,你可以简单地通过双击相关事件加上大部分组件的事件。这确实结合,并产生了codebehind函数声明为您服务。

When you edit a simple page in the design view, you can add an event on most components by simply double-clicking the relevant event. This does the binding and generates the function declaration in the codebehind for you.

在那里的页面是复杂的大型项目,设计视图可能会非常缓慢。有没有一种方法可以快速直接从的.aspx 源产生codebehind存根?

In larger projects where the pages are complex, the design view can be extremely slow. Is there a way to quickly generate the codebehind stubs directly from the .aspx source?

推荐答案

我已经能够与ReSharper的做到这一点,但我已经用了这么久了,我不记得Visual Studio中是否具有此功能本身。

I've been able to do this with ReSharper, but I've been using it for so long that I don't recall whether Visual Studio has this capability natively.

这篇关于Visual Studio中的键盘快捷方式创建事件处理程序存根的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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