[英]Visual Studio 2010: Keyboard Shortcut to “Override Method” in C#?
In Visual Studio 2010, what is the keyboard shortcut to drop-down a list of C# virtual methods, and clicking them will generate an "override method" code?在 Visual Studio 2010 中,下拉 C# 虚拟方法列表的键盘快捷键是什么,单击它们会生成“覆盖方法”代码?
In IntelliJ IDEA, that feature's shortcut is CTRL+Shift+O.在 IntelliJ IDEA 中,该功能的快捷键是 CTRL+Shift+O。
If you type override
space , or just ov
tab space you will get this list.如果你输入
override
space ,或者只是ov
tab space你会得到这个列表。 Select the one you want tab and it will generate the full override
signature and place you in the body (the caret will be placed immediately before the base.blah(...)
call it generates). Select 您想要的选项卡,它将生成完整的
override
签名并将您放置在正文中(插入符号将立即放置在base.blah(...)
调用它生成之前)。
Generally intellisense will automatically list after you've typed (or used intellisense to complete) override
.通常,智能感知会在您输入(或使用智能感知完成)后自动列出
override
。
Typing a space after the "e" of override
will get the list again.在
override
的“e”之后键入一个空格将再次获得列表。
While this is not a direct answer to your question, you may find this link helpful:虽然这不是您问题的直接答案,但您可能会发现此链接很有帮助:
Visual Studio shortcut PDF's by language Visual Studio 快捷方式 PDF 的语言
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.