繁体   English   中英

如何在Visual Studio 2015中更改默认的新项目打开C ++代码?

[英]How to change default new project opening C++ code in Visual Studio 2015?

我的意思是我们总是得到这个代码:

// ConsoleApplication1.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"


int main()
{
    return 0;
}

有没有办法将此更改为另一个代码? 因此,当我开始一个新项目时,我总是希望得到这样的东西:

#include "stdafx.h"
#include <iostream>   

using namespace std;

    int main()
    {
        return 0;
    }

我知道这不是一个很大的区别,但我真的不想总是编辑,有时候很无聊

Microsoft网站上有一些文档。

我想从这里开始你需要的一切:
https://docs.microsoft.com/en-us/visualstudio/ide/customizing-project-and-item-templates

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM