【发布时间】:2020-09-09 20:24:16
【问题描述】:
大家好,我有一个舒适问题是 Visual Studio 2017(由于学校要求,我使用 2017)。 当我开始一个新的 C++ 项目或 C++ 文件时,我总是得到默认代码:
// ConsoleApplication4.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <iostream>
int main()
{
std::cout << "Hello World!\n";
}
// Run program: Ctrl + F5 or Debug > Start Without Debugging menu
// Debug program: F5 or Debug > Start Debugging menu
// Tips for Getting Started:
// 1. Use the Solution Explorer window to add/manage files
// 2. Use the Team Explorer window to connect to source control
// 3. Use the Output window to see build output and other messages
// 4. Use the Error List window to view errors
// 5. Go to Project > Add New Item to create new code files, or Project > Add Existing Item to add existing code files to the project
// 6. In the future, to open this project again, go to File > Open > Project and select the .sln file
每次都删除它对我来说很烦人,我很高兴知道如何删除默认代码。我搜索了 Internet 和 Microsoft MSDN,但没有找到任何解决方案。感谢您的帮助,这个网站对我帮助很大!
【问题讨论】:
-
MSDN 页面是否相关? docs.microsoft.com/en-us/visualstudio/ide/….
-
这能回答你的问题吗? How to change default code in Visual studio
标签: c++ visual-studio visual-c++