0

我主要是一名 C# 开发人员,但现在我正在从事一个 C++ 项目。在 C# 中,当我右键单击文档或变量或类定义时,我会得到很多有助于更快开发的菜单(例如重构以更改变量的名称),但在 C++ 中,所有这些菜单都被禁用。

我认为,有一个设置将我的环境设置为 c#,因此菜单对 c++ 无效。我对吗?

如何更改设置并使其与 c++ 兼容?

是否有任何有用的扩展可以帮助我在 C++ 中做这些类型的事情?

4

1 回答 1

1

Nope, this functionality just doesn't exist for C++ like it does for C#. There's nothing wrong with your IDE or its configuration.

You can reset Visual Studio's settings to the default C++ development settings if you want, but there's not much point in doing so. It'll just change certain key bindings to be more familiar to people used to Visual C++ 6.0 and you won't be able to find the commands that you want. No new commands will magically appear. To do this, use the Import/Export Settings Wizard, accessible under the Tools menu. All of the default language settings are available as pre-defined options on the "Import" screen.

As far as extensions go, consider Whole Tomato's Visual Assist X. You have to pay for it, but it's really an awesome and indispensable tool for C++ developers who use Visual Studio. There are probably other options, but I can't recommend any of them.

于 2013-05-28T08:27:58.997 回答