I deleted my web.config, how to recreate?

asp.net

Solution

You'll lose all your custom settings, but...

Right Click on your Project -> Add Item... -> Select 'Web Configuration File' (name it web.config)

In the future, you might want to use some form of Source Control (Git would be good for a single developer that doesn't want to worry about setting up a Source Control server).

Problem

Is there a simple way to recreate my accidently deleted web.config file from Visual Studio?

Original source