Visual Studio 2012 HTML编辑器 - “转到定义”

时间:2022-11-14 08:02:25

Is there an easy way to "Go To Definition" of an ASP.Net Control event while using the Visual Studio HTML Editor?

在使用Visual Studio HTML编辑器时,是否有一种简单的方法来“转到定义”ASP.Net Control事件?

<asp:Button runat="server" Text="Create New Employer" ID="btnCreateNewEmployer" OnClick="btnCreateNewEmployer_Click" />

I want to access btnCreateNewEmployer_Click method in the code behind without having to scroll through it or doing a ctrl-F to find it.

我想在后面的代码中访问btnCreateNewEmployer_Click方法,而不必滚动它或执行ctrl-F来查找它。

Thanks.

2 个解决方案

#1


0  

The only way that I can think is by having the focus on the button and pressing Keyboard's "F4" button or clicking on the "Properties" menu and then go to events tab which has this defintion. Otherwise, you can always go to the Design View and double click on the button itself.

我能想到的唯一方法是关注按钮并按下键盘的“F4”按钮或点击“属性”菜单,然后转到具有此定义的事件选项卡。否则,您始终可以转到设计视图并双击按钮本身。

Hope this Helps!!

希望这可以帮助!!

#2


0  

You can use this extension for VS 2012 it’s available for free:

您可以将此扩展程序用于VS 2012,它可以免费使用:

It enables you to Make ctrl+click perform a "Go To Definition" on the identifier under the cursor.

它使您可以按ctrl +单击对光标下的标识符执行“转到定义”。

Go To Definition

转到定义

Hope it helps.

希望能帮助到你。

#1


0  

The only way that I can think is by having the focus on the button and pressing Keyboard's "F4" button or clicking on the "Properties" menu and then go to events tab which has this defintion. Otherwise, you can always go to the Design View and double click on the button itself.

我能想到的唯一方法是关注按钮并按下键盘的“F4”按钮或点击“属性”菜单,然后转到具有此定义的事件选项卡。否则,您始终可以转到设计视图并双击按钮本身。

Hope this Helps!!

希望这可以帮助!!

#2


0  

You can use this extension for VS 2012 it’s available for free:

您可以将此扩展程序用于VS 2012,它可以免费使用:

It enables you to Make ctrl+click perform a "Go To Definition" on the identifier under the cursor.

它使您可以按ctrl +单击对光标下的标识符执行“转到定义”。

Go To Definition

转到定义

Hope it helps.

希望能帮助到你。