Type members layout for StyleCop compliant
Hi!
Please I would know if there's an XML to use in the "Type members layout" to be StyleCop compliant and allow ReSharper to auto-format all the code.
Thanks in advance!
Matteo Migliore
Italian blog http://blogs.ugidotnet.org/matteomigliore
Twitter @matteomigliore
CodePlex projects - All .NET Samples - HyperionSDK
Please sign in to leave a comment.
Hello Matteo
Do you use the StyleCop for ReSharper plug-in? As far as I know it comes with the corresponding type member layout pattern. Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
I've seen that there's a new "Code Cleanup" option, the "StyleCop" option, but if I change the status of the checkboxes to be compliant with my rules (e.g. no headers o XML comment for properties) they are not maintened after save and close the ReSharper options dialog.
Thanks!
Matteo Migliore
Italian blog http://blogs.ugidotnet.org/matteomigliore
Twitter @matteomigliore
CodePlex projects - All .NET Samples - HyperionSDK
>"they are not maintened after save and close the ReSharper options dialog"
Maybe part of fixes for 6.1.1 ( see http://youtrack.jetbrains.net/issue/RSRP-287390 "Code Cleanup Profile Settings Like Var and Optimize Settings Are not Saved").
You can try out the EAP via http://confluence.jetbrains.net/display/ReSharper/ReSharper+6.1.1+Nightly+Builds
Andrey,
Sadly only 1 of 2 refactorings or quick fixes respect those type member
layout patterns.
--
/\/\arkus.
Yes.
The XML "Type members layout" is needed to be compliant to StyleCop to automatic format the code.
Where we can find it?
P.S.
Which is the shortcut for the "Silent cleanup code" with ReSharpe keyboard schema?
CTRL+ALT+F shows the dialog and I don't want it.
Thanks!
Matteo Migliore
Italian blog http://blogs.ugidotnet.org/matteomigliore
Twitter @matteomigliore
CodePlex projects - All .NET Samples - HyperionSDK