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

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

问题描述

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


组合键(键,键)是绑定到命令(命令)的
,这是
目前不可用。


这是为什么?示例包括 CTRL + R R 重命名 CTRL对于格式文档,+ K CTRL + D



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



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

解决方案

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



编辑: OP目前说用于编写C,以防以后问题变为用于编写C#。



如果OP实际上意味着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:

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

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.

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

解决方案

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.

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

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天全站免登陆