简体   繁体   English

创建新项目时,如何更改Visual Studio 2013(C ++)中的默认#include?

[英]How to change default #includes in Visual Studio 2013(C++) when I create a new project?

每次我在Visual Studio中创建一个新项目时,默认情况下它都包含stdafx.h和stdafx.cpp。但是,我还希望默认情况下也包含string,vector,iostream,在这些选项中可以更改这些设置以包括每次我创建一个新项目时,这些库也是如此?

Not quite what you want, but you can put all those includes into stdafx.h each time you start a project. 并不是您想要的,但是您可以在每次启动项目时将所有包含的内容放入stdafx.h中。 That has the same effect as putting the includes in every cpp file. 与将includes放入每个cpp文件中具有相同的效果。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Visual Studio 2015中更改默认的新项目打开C ++代码? - How to change default new project opening C++ code in Visual Studio 2015? 无法在Visual Studio 2013中正确创建C ++项目 - Unable to create C++ Project correctly in Visual Studio 2013 切换到新标签页时更改视图-C ++,MFC visual studio 2013 - change the view when switching to a new tab - c++, MFC visual studio 2013 在Visual Studio 2017上创建新的C ++项目时,我没有更改默认位置的选项,因为2015 - On Visual Studio 2017 while creating a new C++ project I don't have the options to change the default location as 2015 had Visual Studio Express 2013:如何使用现有C ++源文件创建项目? - Visual Studio Express 2013: How to create project with existing C++ source files ? 如何在Visual Studio 2013中的C ++项目中使用libcurl - How to use libcurl in a C++ project in Visual Studio 2013 如何在 Visual Studio 2013 中更改 C++ 标准 - How to change c++ standard in Visual Studio 2013 如何设置Visual Studio C ++“默认默认”项目设置 - How to set Visual Studio C++ “default default” project settings 如何在Visual Studio 2013中更改我的C ++应用程序的名称(该名称显示在窗口顶部)? - How can I change the name of my C++ application in Visual Studio 2013 (The name that appears at the top of the window)? 如何在Visual Studio 2013中使用C ++创建可执行文件? - How do I create an executable in Visual Studio 2013 w/ C++?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM