Visual Studio键盘快捷方式可自动添加所需的"using"语句 [英] Visual Studio keyboard shortcut to automatically add the needed 'using' statement

查看:297
本文介绍了Visual Studio键盘快捷方式可自动添加所需的"using"语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

展开红色小线(可为您提供菜单)的键盘快捷方式是什么,您可以在菜单中选择将必要的using语句添加到文件顶部吗?

What is the keyboard shortcut to expand the little red line that gives you the menu where you can choose to have the necessary using statement added to the top of the file?

推荐答案

Ctrl + .显示菜单.我发现它比 Alt + Shift + F10 容易输入.

Ctrl + . shows the menu. I find this easier to type than the alternative, Alt + Shift + F10.

可以通过转到工具">选项">环境">键盘">"Visual C#">"View.QuickActions"将其重新绑定到更熟悉的地方

This can be re-bound to something more familiar by going to Tools > Options > Environment > Keyboard > Visual C# > View.QuickActions

这篇关于Visual Studio键盘快捷方式可自动添加所需的"using"语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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