Logo

quadroid

Home
RĂ©sume
Tech Blog

ReSharper and PostFix

I enjoy working with ReSharper, it lines up code generation and refactoring capabilities from Visual Studio to other IDEs, and the cleanup feature is awesome to automate the code housekeeping.

A few months ago I came across the ReSharper extension: PostFix, and I love it.

Postfix extends the IntelliSense to some very common use cases where you have to jump back to the beginning of the line, insert something, and jump back.

Some examples:

  • you want to invert the current expression: with postfix you can just type .not and press tab the resharper extension will do all the work.
  • you want to wrap the current IDisposable Type into a using section: just type .using
  • you want the current expression as condition for a while loop: just type .while
  • you want to wrap the expression as condition in a if clause: just type .if

...and many more. There is a beautiful list with all available postfix "commands" on github: Check it out.