How do I set up Visual Studio with default headers and comments?

前端 未结 1 1476
Happy的楠姐
Happy的楠姐 2021-01-21 10:26

I am fairly new to using Visual Studio. Currently I am using Visual Studio 2015 version. Currently when I set up a new C++ console application project (with Precompiled header

1条回答
  •  鱼传尺愫
    2021-01-21 10:51

    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.)

    [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.]

    0 讨论(0)
提交回复
热议问题