Visual Studio 2010:为什么组合键不可用? [英] Visual Studio 2010: Why aren't key combinations available?

查看:44
本文介绍了Visual Studio 2010:为什么组合键不可用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 VS 2010 编写 C.我经常尝试使用热键组合,并收到以下形式的错误消息:

I am trying to use VS 2010 for writing C. Frequently, I try to use a hotkey combination, and I get an error message of the form:

组合键(key,key)是绑定到命令(Command),它是目前不可用.

The key combination (key, key) is bound to command (Command) which is not currently available.

这是为什么?示例包括 CTRL + RR 用于 RenameCTRL + KCTRL + D格式化文档的代码>.

Why is this? Examples include CTRL + R, R for Rename and CTRL + K, CTRL + D for Format Document.

我正在代码编辑窗口中用光标尝试这些命令.

I am trying these commands with my cursor in the code editing window.

我发现这适用于 2008 C#,但不适用于 2010 C/C++.

I find that this works in 2008 C# but not 2010 C/C++.

推荐答案

C++ 文本编辑器没有实现这两个命令.如果它们在 2008 年工作,那只是因为您安装了一个扩展程序来增加对这些功能的支持.

The C++ text editor does not implement those two commands. If they work in 2008, it's only because you have an extension installed that adds support for those features.

OP 目前说用于编写 C",以防问题稍后变为用于编写 C#".

The OP currently says "for writing C", just in case the question later changes to "for writing C#."

如果 OP 实际上是指 C#,则发生错误是因为您正在编辑的文档不属于您当前打开的项目/解决方案的一部分,或者该文件的 Build Action 设置为 None.

If the OP actually means C#, then the error is occurring because you are editing a document that is not part of a project/solution you currently have open, or the file has the Build Action set to None.

这篇关于Visual Studio 2010:为什么组合键不可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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