且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何设置带有默认标题和注释的Visual Studio?

更新时间:2023-09-23 23:25:46

  1. 创建一个新的控制台应用程序.
  2. 将文件编辑为您想要的新文件.
  3. 在文件"菜单中选择导出模板...".
  4. 遍历向导(为新模板选择名称,等等)
  5. 确保已选中自动将模板导入Visual Studio".
  6. 重新启动VS
  7. 选择新项目"
  8. 在左侧的树形控件中选择"Visual C ++"
  9. 在中间的列表中选择您的新模板
  10. 新项目中常用的东西(项目的名称和位置等)
  1. Create a new console application.
  2. Edit the file to be as you want it in the new one.
  3. Select "Export Template..." in the "File" menu.
  4. Walk through the wizard (choose a name for your new template, etc.)
  5. Be sure the "Automatically import the template into Visual Studio" is checked.
  6. Restart VS
  7. Select "New Project"
  8. Select "Visual C++" in the tree control on the left
  9. Select your new template in the list in the middle
  10. The usual new-project stuff (name and location for the project, etc.)

[注意:在撰写本文时,我正在VS 2013中进行查看.我不记得它在VS 2015中有所变化,但是有可能.]

[Note: As I'm writing this, I'm looking at it in VS 2013. I don't recall it's changing in VS 2015, but it's possible.]