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

More Posts

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *