Configuring Resharper 9

If you work in a lot of environments you will be used to a wide array of different coding styles, curly braces, no curly braces, comments, no-comments.. the list can go on and on and be very heatedly debated by engineers.  If you're like me, I configure re-sharper once in a blue moon and then completely forget, so here is my list of top re-sharper tweaks:

How to adjust the placement of using directives either inside or outside of the namespace

Re-sharper 9 Code Editing -> C# -> Code Style -> Reference Qualification -> Add 'using' directive to deepest scope If you have 'deepest scope' enabled, your using imports will be within your namespace.  If you uncheck it, resharpen will automatically add them to the outside. Re-sharper 8 Options -> Languages -> C# -> Formatting Style -> Namespace Imports -> Add using directive to the deepest scope Removing / Adding the 'this' qualifier Re-sharper 9 Code Editing -> C# -> Code Style -> Instance members qualification - > Use "this." qualifier for Re-sharper 8 Options -> Languages -> C# -> Formatting Style -> Other -> Force "this." qualifier for instance member   

Jon D Jones

Software Architect, Programmer and Technologist Jon Jones is founder and CEO of London-based tech firm Digital Prompt. He has been working in the field for nearly a decade, specializing in new technologies and technical solution research in the web business. A passionate blogger by heart , speaker & consultant from England.. always on the hunt for the next challenge

Back to top
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-35662136-1']); _gaq.push(['_trackPageview']); (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + ''; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();