Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I make 'Edit-and-continue' = true the default for all new web projects in Visual Studio?

When creating a new web project in Visual Studio 2010 I always forget to enable 'Edit and Continue' until it's "too late". (i.e. until I am editing while debugging and wish I was able to continue). So I would like "Edit & Continue" to be enabled by default.

The setting I'm referring to is under project properties, web tab, 'Debuggers' section. I've found that this setting isn't stored in the .csproj file, but in the .user file for the project, in a node called <EnableENC>. It is 'False' by default, but I wish it was 'True'.

(This applies equally well to VS2008 and perhaps 2005, but I only need to solve it for VS2010)

like image 712
Leon Bambrick Avatar asked Jun 04 '11 02:06

Leon Bambrick


1 Answers

Settings in the .user file can be copied over to the .csproj file, therefore copy the setting in to the template .csproj file and base a custom template on it (or edit the common one somewhere in the Program Files\Microsoft Visual Studio directory).

like image 102
Duncan Smart Avatar answered Sep 17 '22 13:09

Duncan Smart