property code snippet
Just went to a class at TechEd on C# IDE enhancements for VS 2005 and loved it. I had already seen about 80% of it being on the Whidbey Alpha, but there were some more really cool things in there. Again I was reminded seeing the property generation code snippet that I think it's silly to have to specify a field name AND a property name.
Since code snippets are just xml files, you can go in and change it yourself. Here's how I changed mine...
(located in “C:\Program Files\Microsoft Visual Studio 8\VC#\Expansions\1033\Expansions\property.xml” taken from the Code node in the xml file)
private $type$ _$property$
public $type $property$
{
get { return _$property$;}
set { _$property$ = value;}
}
$end$
So now with this, the snippet will be smart in the IDE and only ask you to enter the type and the name of the backing field, instead of also asking you for the name of the property. If you don't like it, change it...very cool! :)
UPDATE: I fixed the problems with the code (I was talking to someone while posting :P) and also talked to someone about how to possibly dump backing variables into a region, but it sounds like at this point it's only possible by doing a plug-in or something, accessing the code model that way.