方法名称组合框的 Visual Studio 键盘快捷键 [英] Visual Studio keyboard shortcut for Method Name combobox

查看:21
本文介绍了方法名称组合框的 Visual Studio 键盘快捷键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 VS 2008(以及我相信之前的版本)中,当在代码编辑器中时,编辑器顶部有 2 个组合框.左侧是类名称组合框,右侧是方法名称组合框.这些是工具提示说明,但有点误导,例如方法名称框显示当前文件中的所有方法、属性、事件等.这些功能有正式名称吗?

In VS 2008 (and prior versions as well I believe) when in the code editor there are 2 comboboxes at the top of the editor. On the left is a Class Name combobox and on the right is a Method Name combobox. Those are the tooltip descriptions but are a little misleading for instance the Method Name box shows all the methods, properties, events etc in the current file. Do these features have official names?

我经常使用方法名称组合框,因为我经常知道我正在处理的文件中有一个属性或方法或其他东西,但不记得确切的名称,所以下拉菜单给了我一个快速的浏览我需要的东西的方式.但是我找不到为这个组合框分配键盘快捷键的方法.是否有键盘快捷键或替代 VS 功能可用于获取此功能?

I use the method name combobox a lot because I'll often know that there's a property or method or something in the file I'm working in, but can't remember the exact name, so the dropdown gives me a quick way to browse for what I need. But I can't find a way to assign a keyboard shortcut to this combobox. Is there a keyboard shortcut or an alternative VS feature that I can use to get this functionality?

推荐答案

感谢 Jeff 的 键盘快捷键摘要宏,我发现 Ctrl + F2 被映射到一个 MovetoNavigationBar 命令,这让我进入类名称组合框."添加一个选项卡,我在方法名称组合框中.

Thanks to Jeff's Keyboard Shortcut Summary Macro, I discovered that Ctrl + F2 is mapped to a MovetoNavigationBar command, which pops me into the "Class Name combobox." Add a tab and I'm in the Method Name combobox.

这篇关于方法名称组合框的 Visual Studio 键盘快捷键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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