Sign in to follow this  
mmakrzem

VS2010 - Where are <projectName>.cpp, stdafx.h, stdafx.cpp, targetver.h templates?

Recommended Posts

Everytime I start a new project, Visual Studio 2010 creates the following five files for me:
[code]
stdafx.h
stdafx.cpp
targetver.h
<projectName>.cpp
ReadMe.txt
[/code]

The first thing that I always do is I delete the ReadMe file, and then go through each of the remaining files and format the header and files to my liking.

I'd like to customize the header and source file templates so that they look the way that I like, rather than what the defaults give me.

Does anyone know where VS gets these files from so that I can modify them?
Also I'd like to know if there is a way to tell VS not to ever create the ReadMe file so that I don't have to take the time to delete it every time I create a new project.

Share this post


Link to post
Share on other sites
They're at for the generic win32 app or win32 console app:
%VSINSTALLDIR%\VC\VCWizards\AppWiz\Generic\Application\templates\1033

templates.inf controls which files are created, the content of the files is controlled by, well, the contents of the file.

You can find the locations of files for other templates by looking at the relative vsz files (just a renamed text file) under the \vcprojects\ directory.

Share this post


Link to post
Share on other sites
[quote name='adeyblue' timestamp='1317481731' post='4867990']
They're at for the generic win32 app or win32 console app:
%VSINSTALLDIR%\VC\VCWizards\AppWiz\Generic\Application\templates\1033
[/quote]


Thanks that is exactly what I was looking for!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this