Resharper offers a very useful introduce and initialize field xxx action when you specify a new parameter in a constructor like:
Constructor (int parameter)
The only (minor) nuisance is that it puts the new field at the beginning of the class – and I’m a fan of putting private parts as far away as possible from the prying eyes of strangers ;).
If, however, you already have some private fields in the class, Resharper will put the new field “correctly” (note the quotes, I don’t want to start a flame war over this issue) next to those, even if they are at the end of the class.
Is there a way to force Resharper to always put new fields at the end of the class?
UPDATE: OK, I forgot to mention I know about the “Type Members Layout in Options” feature, but some concrete help on how to modify the template to achieve fields placement would be nice.
If you haven’t already, you should lodge a bug report at the ReSharper Jira site:
http://www.jetbrains.net/jira/browse/RSRP
Have a look first to see if someone has already reported this. If so, you can vote on their issue and be notified of any changes to it.