问题描述
我想在我的项目中使用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 ++语言标准?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!