简体   繁体   English

如何设置Visual Studio C ++“默认默认”项目设置

[英]How to set Visual Studio C++ “default default” project settings

How do I change the default settings (property pages) that new "Solutions" and projects start with? 如何更改新“解决方案”和项目的默认设置(属性页)? When I create a new project using the Application Wizard, it always has the same settings, but they are not the ones I want. 当我使用应用程序向导创建一个新项目时,它总是具有相同的设置,但它们不是我想要的。

Surely the question must have been asked and answered, but I cannot find it. 当然,问题必须得到回答,但我找不到。 Maybe I do not know the right jargon. 也许我不知道正确的行话。

Visual Studio allows you to generate a custom project template, allowing you to set the defaults to what makes the most sense for any given environment. Visual Studio允许您生成自定义项目模板,允许您将默认值设置为对任何给定环境最有意义的内容。

The procedure involves 2 steps: 该程序包括两个步骤:

  • Create a new project, and adjust the settings. 创建一个新项目,然后调整设置。
  • Export a template using the Export Template Wizard . 使用“ 导出模板向导导出模板 Up until Visual Studio 2015, the Export Template... command was under the File menu. 直到Visual Studio 2015,“ 导出模板...”命令位于“ 文件”菜单下。 Starting with Visual Studio 2017, it was moved to the Project menu. 从Visual Studio 2017开始,它已移至“ 项目”菜单。

    On the first page, select Project template , and continue on to the next (final) page, filling in the information as appropriate. 在第一页上,选择项目模板 ,然后继续到下一个(最终)页面,根据需要填写信息。 Choose Automatically import the template into Visual Studio to have it instantly available. 选择“ 自动将模板导入Visual Studio”以使其立即可用。

Official documentation is available at How to: Create project templates . 官方文档可在如何:创建项目模板中找到

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

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