I recently had to reinstall visual studio. Previously when I chose Windows Console Application it would load with #include "stdafx.h". Now for some reason it loads with #include "pch.h" and a "hello world" program. I just want it to default load with stdafx.h and int main { return 0} like it used to. I need the stdafx.h, it's a requirement for my school projects so I would really like for it to load up as a default like before. Any help would be greatly appreciated. I posted an image of how it loads up now.
Asked
Active
Viewed 469 times
1 Answers
0
Simply create a new template.
- Create a new console application.
- Edit the file to be as you want it in the new one.
- Select "Export Template..." in the "File" menu.
- Walk through the wizard (choose a name for your new template, etc.)
- Be sure the "Automatically import the template into Visual Studio" is checked.
- Restart VS
- Select "New Project"
- Select "Visual C++" in the tree control on the left
- Select your new template in the list in the middle
- The usual new-project stuff (name and location for the project, etc.)
Source: How do I set up Visual Studio with default headers and comments?
-
Thank you. Wasn't exactly what I was looking for but I think this will work out better than what I wanted anyway so thanks again. – Pandax35 Sep 08 '18 at 21:03
-
Awesome! Thanks. – Sep 08 '18 at 21:38