簡體   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