controlflow / resharper-postfix

ReSharper Postfix Templates plugin
MIT License
127 stars 12 forks source link

ReSharper Postfix Templates plugin

The basic idea is to prevent caret jumps backwards while typing C# code. Kind of surround templates on steroids baked with code completion.

Demo

ReSharper 10

I'm excited to announce that this plugin is now integral part of ReSharper 10!

Further Postfix Templates development happens inside ReSharper codebase, so this repository is no longer maintained and intended to use as a source of code examples for ReSharper plugin development.

Download

Features

Available templates:

Also Postfix Templates including more C# code completion features sharing the same idea:

Static members of first argument type capatible available just like instance members:

Static members completion

Enum members are available over values of enumeration types to produce equality/flag checks:

Enum members completion

Length/Count code completion solves one of the most common mistypings when dealing with arrays or collections:

Length/Count completion

Create type parameter from usage helps declaring generic methods in a postfix way:

Type parameter completion

Notes

Feedback

Feel free to post any issues or feature requests in YouTrack (use "PostfixCompletion" subsystem).