如何在Visual Studio 2019中更改默认的C ++语言标准? [英] How to change default C++ language standard in Visual Studio 2019?

查看:213
本文介绍了如何在Visual Studio 2019中更改默认的C ++语言标准?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的项目中使用C ++ 17,而在启动新项目时不必总是在属性中对其进行更改.这可能吗?

I'd like to use C++17 for my projects without always having to change it in the properties when starting a new one. Is this possible?

谢谢!

推荐答案

在视图"下编辑属性表->其他Windows->Property Manager接下来打开项目的树,然后打开要更改的平台.

Edit the property sheet under the View -> Other Windows -> Property Manager Next open the tree for a project and then the platform you wish to change.

默认情况下,此处的设置将继承相应平台的所有项目配置,因此,右键单击"Microsoft.Cpp..User"节点.然后转到C/C ++->语言并设置所需的语言标准,然后单击确定.

The settings here are inherited by default for all project configurations of the corresponding platform so right click the node for "Microsoft.Cpp..User" and then go to C/C++ -> Language and set the language standard you want then click Ok.

您可能需要右键单击项目节点,然后选择保存",我不确定这是否确实必要.

You may need to right click the project node and select save, I'm not sure if that is actually necessary or not.

这篇关于如何在Visual Studio 2019中更改默认的C ++语言标准?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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