Go to next line after auto-completion - shortcut?

Hi,

fairly new to R#, sorry if this is a newbie question.

Is there a shortcut to go to next line after code-completion? Say you do the following

type: Console.
<Tab>
<WriteLine is selected and you're between the ( )>
type: "
<The line completes you're between ("");>
type: TEST

Now you're at the end of the word TEST i.e. Console.WriteLine("TEST");  and you want to go to the next line without having to type ");<Enter>

Any ideas?

Thanks,

R.

4 comments
Comment actions Permalink

Hello radski,

Try "Complete Statement", Ctrl-Shift-Enter.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


r> Hi,
r>
r> fairly new to R#, sorry if this is a newbie question.
r>
r> Is there a shortcut to go to next line after code-completion? Say you
r> do the following
r>
r> type: Console.
r>  http://www.jetbrains.net/devnet/message/5264815#5264815


0
Comment actions Permalink

Thanks Ilya, works a treat.


0
Comment actions Permalink

This doesn't work for me. For instance, I have this code:

public int Blah { get; private set;I }

The cursor is right after the second semicolon (marked as I). If I press CTRL+SHIFT+ENTER, I get this:

public int Blah { get; private set;
I}

The cursor is in the next line, just before the closing bracket.

But I actualy want this:

public int Blah { get; private set; }

I

Now I have to press End and then Enter to achieve this. Am I missing something?

Edit - I use Visual Studio 2010, Resharper 5.1, Resharper 2.x or IntelliJ IDEA keyboard layout.

0
Comment actions Permalink

Hello simon,

I'm afraid Complete Statement doesn't support this case. Thank you!

Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

This doesn't work for me. For instance, I have this code: public int
Blah { get; private set;I }

The cursor is right after the second semicolon (marked as I). If I
press CTRLSHIFTENTER, I get this:

public int Blah { get; private set;

I}

The cursor is in the next line, just before the closing bracket.

But I actualy want this:
public int Blah { get; private set; }
I
Now I have to press End and then Enter to achieve this. Am I missing
something?

---
Original message URL:
http://devnet.jetbrains.net/message/5301075#5301075



0

Please sign in to leave a comment.