Request: auto-smart complete cast after a surround with cast
The screenshots are I believe self explanatory. First you select the variable number with Ctrl + W then you use Ctrl + Alt + J for the "Surround With..." feature:
Next when you choose "cast" from the list and hit enter this is the result:
It would be nice if ReSharper would automatically fill in the type for the cast giving:
Without the need for the addiontal Ctrl + Shift + Space step to auto-complete it.
Regards
--
Gabriel Lozano-Morán
The .NET Aficionado
http://www.pointerx.net
Please sign in to leave a comment.
Furthermore, shouldn't this Surround With be more like (($END$) $SELECTION$)
instead of ($END$)($SELECTION$)?
You are right, it would be better for this template to guess the type. You
can edit it yourself to achieve this behavior (replace "$END$" with "$TYPE$"
and assign "Guess type expected at this point" to it). We'll change the default
template in the next version of ReSharper. Thanks!
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"