controlflow / resharper-postfix

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

Help to use generic parameters in postfix fashion #31

Closed citizenmatt closed 9 years ago

citizenmatt commented 9 years ago

I don't know how this would work, but I always end up using a generic parameter T without having declared it in the method or class, and resharper's greedy code completion always adds a totally useless class name:

public void Foo(IEnumerable<ThreadStaticAttribute>

Can postfix do something to help? Add a 'create T' item in the code completion for IEnumerable< above? Any better ideas?

controlflow commented 9 years ago

Hmm, we can introduce template-like item T (available where? only in signature?), that will populate type parameter declaration with hotspot placeholders on complete... that sounds like a good idea to try...

controlflow commented 9 years ago

Will be available in upcoming 2.2