visual-studio 如何在 Visual Studio 中将我的开发环境更改为其他语言?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/967309/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 10:36:52  来源:igfitidea点击:

How do I change my development environment to a different language in Visual Studio?

visual-studiodevelopment-environment

提问by Inisheer

When I first installed Visual Studio, I chose to customize my environment for "Visual C++" development. Now, I am working primarily in C# and want to change this setting to a C# environment.

当我第一次安装 Visual Studio 时,我选择为“Visual C++”开发定制我的环境。现在,我主要使用 C# 并希望将此设置更改为 C# 环境。

How can I change the environment settings from one language to another in Visual Studio?

如何在 Visual Studio 中将环境设置从一种语言更改为另一种语言?

回答by Inisheer

Tools → Import and Export Settings → Import Selected Environment Settings...

工具 → 导入和导出设置 → 导入选定的环境设置...

A dialog will appear, prompting you whether or not you want to save your current settings. If you've made extensive customizations and might want to go back to them at a later date, you should choose to save them.

将出现一个对话框,提示您是否要保存当前设置。如果您进行了大量自定义,并且可能希望在以后返回到它们,您应该选择保存它们。

Then click "Next". You'll be prompted to import a set of environment settings. At the top will be the default environment settings options, customized for each language. In your case, you'd choose C#.

然后单击“下一步”。系统将提示您导入一组环境设置。顶部将是默认环境设置选项,为每种语言定制。在您的情况下,您会选择 C#。

If you wanted to re-import your saved settings, you'd do it the same way—just browse to the saved settings file in the final step of the wizard.

如果您想重新导入已保存的设置,您可以采用相同的方法——只需在向导的最后一步浏览到已保存的设置文件即可。

回答by Bill

You could also reset all of the settings from the command line:

您还可以从命令行重置所有设置

devenv /resetsettings

And then choose all over again when prompted.

然后在出现提示时重新选择。

Note: I prefer "General Developer Settings" if you are going to do development in different technology areas (C++, C#, VB, etc.).

注意:如果您要在不同的技术领域(C++、C#、VB 等)进行开发,我更喜欢“General Developer Settings”。