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

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

问题描述

展开小红线的键盘快捷键是什么?它为您提供了一个菜单,您可以在其中选择将必要的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 键盘快捷键可自动添加所需的“使用"语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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