Simple really - in Tools, Options, Text Editor, C#, New Lines, New Line Options for braces, there is not an option for properties...
Or am I going mad and just can't find it?
EDIT: I am using an add-in that is generating the code and reportedly uses the VS settings.... but doesn't seem to, so I've given up on this issue, it's not that important.
From stackoverflow
-
Indeed there isn't; it uses the "methods" setting. Resharper may have more control, but has a price tag too.
kpollock : it may be the add-in that isn't working properly, supposed to use those settings (http://www.csharper.net/blog/property_manager_update.aspx#property_manager_addin_for_visual_studio_2005.aspx) oh well, useul addin nonethelessMarc Gravell : Erm... who mentioned an add-in?kpollock : the add-in is generating the code and reportedly uses the VS settings.... -
For the outer braces of the property it's the same one as for methods (Place open brace on new line for methods).
Marc Gravell : I don't have 2005 handy, but in 2008 it applies to the inner (get/set) braces too.antonioh : You're right, I put the "get" statement all in one line, so it didn't auto-format it
0 comments:
Post a Comment