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

查看:103
本文介绍了方法名称组合框的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天全站免登陆