Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Skip over auto-completed parenthesis in ReSharper 7

ReSharper automatically completes open parenthesis in method calls, and I like that. I want it to continue doing that. However! Is there some easy way to move the caret past the auto-completed parenthesis?

For example, when I type: Encoding.UTF8.GetBytes(

I am given the closing parenthesis immediately: Encoding.UTF8.GetBytes()

Then I add "Test" as the parameter: Encoding.UTF8.GetBytes("Test")

But now, my caret is immediately before the closing parenthesis. It's annoying to move my hand to the END key, or to the arrows just so I can skip over the auto-completed parenthesis so I can add a semi-colon:

Encoding.UTF8.GetBytes("Test");

Neither TAB nor ENTER do what I want. And the answer given here: How to quickly move to the end of generated braces/parenthesis/etc in Visual Studio with Resharper? advises me to just go ahead and type the ). But then what's the point of automatically closing the parenthesis if I'm going to type it anyway??

like image 938
John Ruiz Avatar asked Feb 07 '13 17:02

John Ruiz


1 Answers

If you want to completely end your current statement and go not only beyond all ')', but also beyond ';', then you can use Complete Statement feature (Ctrl+Shift+Enter). See more info here http://www.jetbrains.com/resharper/webhelp/Coding_Assistance__Complete_Statement.html

Otherwise there is no such a feature because when you need to skip just one ')', you'd still need to press a key to go over ')', and Enter or Tab are not better than ')' or right arrow - no use to change one for another.

like image 65
Dmitry Osinovskiy Avatar answered Oct 23 '22 07:10

Dmitry Osinovskiy