Goto the method code generation started from

Hi

Is there any R# command which takes me back to the orinal place in the code
I started code generation from. For instance, when I use "Create field"
from a constructor after typing something like "_field = field", I would
like to return back to the unfinished constructor body after completing _field
declaration.

Thank you
Yuriy


9 comments
Comment actions Permalink

Have you tried the VS command "Navigate Back"?

"Yuriy Solodkyy" <y.dot.solodkyy@gmail.com> wrote in message
news:ecc8d37914bc7a8c8dee96d5fa83f@news.jetbrains.com...

Hi

>

Is there any R# command which takes me back to the orinal place in the
code I started code generation from. For instance, when I use "Create
field" from a constructor after typing something like "_field = field", I
would like to return back to the unfinished constructor body after
completing _field declaration.
Thank you
Yuriy

>



0
Comment actions Permalink

And also you can try ReSharper > Go To > Last Edit Location command (Ctrl-Shift-Backspace).

Valentin Kipiatkov
CTO and Chief Scientist
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Have you tried the VS command "Navigate Back"?

"Yuriy Solodkyy" <y.dot.solodkyy@gmail.com> wrote in message
news:ecc8d37914bc7a8c8dee96d5fa83f@news.jetbrains.com...

>> Hi
>>
>> Is there any R# command which takes me back to the orinal place in
>> the
>> code I started code generation from. For instance, when I use
>> "Create
>> field" from a constructor after typing something like "_field =
>> field", I
>> would like to return back to the unfinished constructor body after
>> completing _field declaration.
>> Thank you
>> Yuriy


0
Comment actions Permalink

Hello Valentin,

It won't work correctly all the time, because quick-fix invokation is not
edition. Actual document change occures at the point where field is created.

Sincerely,
Ilya Ryzhenkov

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


VK> And also you can try ReSharper > Go To > Last Edit Location command
VK> (Ctrl-Shift-Backspace).
VK>
VK> Valentin Kipiatkov
VK> CTO and Chief Scientist
VK> JetBrains, Inc
VK> http://www.jetbrains.com
VK> "Develop with pleasure!"
>> Have you tried the VS command "Navigate Back"?
>>
>> "Yuriy Solodkyy" <y.dot.solodkyy@gmail.com> wrote in message
>> news:ecc8d37914bc7a8c8dee96d5fa83f@news.jetbrains.com...
>>
>>> Hi
>>>
>>> Is there any R# command which takes me back to the orinal place in
>>> the
>>> code I started code generation from. For instance, when I use
>>> "Create
>>> field" from a constructor after typing something like "_field =
>>> field", I
>>> would like to return back to the unfinished constructor body after
>>> completing _field declaration.
>>> Thank you
>>> Yuriy


0
Comment actions Permalink

Thank you, actually sequence of VS Ctrl+- works fine for me, I did not realize
that I can use it.

Hello Valentin,

It won't work correctly all the time, because quick-fix invokation is
not edition. Actual document change occures at the point where field
is created.

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

VK>> And also you can try ReSharper > Go To > Last Edit Location command
VK>> (Ctrl-Shift-Backspace).
VK>>
VK>> Valentin Kipiatkov
VK>> CTO and Chief Scientist
VK>> JetBrains, Inc
VK>> http://www.jetbrains.com
VK>> "Develop with pleasure!"
>>> Have you tried the VS command "Navigate Back"?
>>>
>>> "Yuriy Solodkyy" <y.dot.solodkyy@gmail.com> wrote in message
>>> news:ecc8d37914bc7a8c8dee96d5fa83f@news.jetbrains.com...
>>>
>>>> Hi
>>>>
>>>> Is there any R# command which takes me back to the orinal place in
>>>> the
>>>> code I started code generation from. For instance, when I use
>>>> "Create
>>>> field" from a constructor after typing something like "_field =
>>>> field", I
>>>> would like to return back to the unfinished constructor body after
>>>> completing _field declaration.
>>>> Thank you
>>>> Yuriy


0
Comment actions Permalink

Aha - I have been using Ctrl-Backspace and wondering why this did not work!
Has the shortcut key changed in recent builds?

And also you can try ReSharper > Go To > Last Edit Location command
(Ctrl-Shift-Backspace).



0
Comment actions Permalink

Hello Sean,

I believe, it was CtrlShiftBackspace from the very beginning.

Aha - I have been using Ctrl-Backspace and wondering why this did not
work!
Has the shortcut key changed in recent builds?

>> And also you can try ReSharper > Go To > Last Edit Location command
>> (Ctrl-Shift-Backspace).
>>
Best regards,
Andrey Simanovsky


0
Comment actions Permalink

Hi Andrey

You are right - I realised this when I got to work the next day and found
that my fingers remember better than my brain ;)

Regards

Sean

Hello Sean,

I believe, it was CtrlShiftBackspace from the very beginning.

Best regards,
Andrey Simanovsky



0
Comment actions Permalink

It won't work correctly all the time, because quick-fix invokation is
not edition. Actual document change occures at the point where field
is created.


Yes, I understand that. But in most of cases when you apply "Create..." quickfixes,
you've been just editing the code at the point of quickfix application.

Valentin Kipiatkov
CTO and Chief Scientist
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Hello Valentin,

It won't work correctly all the time, because quick-fix invokation is
not edition. Actual document change occures at the point where field
is created.

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

VK>> And also you can try ReSharper > Go To > Last Edit Location command
VK>> (Ctrl-Shift-Backspace).
VK>>
VK>> Valentin Kipiatkov
VK>> CTO and Chief Scientist
VK>> JetBrains, Inc
VK>> http://www.jetbrains.com
VK>> "Develop with pleasure!"
>>> Have you tried the VS command "Navigate Back"?
>>>
>>> "Yuriy Solodkyy" <y.dot.solodkyy@gmail.com> wrote in message
>>> news:ecc8d37914bc7a8c8dee96d5fa83f@news.jetbrains.com...
>>>
>>>> Hi
>>>>
>>>> Is there any R# command which takes me back to the orinal place in
>>>> the
>>>> code I started code generation from. For instance, when I use
>>>> "Create
>>>> field" from a constructor after typing something like "_field =
>>>> field", I
>>>> would like to return back to the unfinished constructor body after
>>>> completing _field declaration.
>>>> Thank you
>>>> Yuriy


0
Comment actions Permalink

It becomes quite annoying when you review code, then if you see something
to improve and can do it with R#, you just lost you reviewing position.
Assuming that you were not editing anything there..

>> It won't work correctly all the time, because quick-fix invokation is
>> not edition. Actual document change occures at the point where field
>> is created.
>>

Yes, I understand that. But in most of cases when you apply
"Create..." quickfixes, you've been just editing the code at the point
of quickfix application.

Valentin Kipiatkov
CTO and Chief Scientist
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> Hello Valentin,
>>
>> It won't work correctly all the time, because quick-fix invokation is
>> not edition. Actual document change occures at the point where field
>> is created.
>>
>> Sincerely,
>> Ilya Ryzhenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
VK>>> And also you can try ReSharper > Go To > Last Edit Location
VK>>> command (Ctrl-Shift-Backspace).
VK>>>
VK>>> Valentin Kipiatkov
VK>>> CTO and Chief Scientist
VK>>> JetBrains, Inc
VK>>> http://www.jetbrains.com
VK>>> "Develop with pleasure!"
>>>> Have you tried the VS command "Navigate Back"?
>>>>
>>>> "Yuriy Solodkyy" <y.dot.solodkyy@gmail.com> wrote in message
>>>> news:ecc8d37914bc7a8c8dee96d5fa83f@news.jetbrains.com...
>>>>
>>>>> Hi
>>>>>
>>>>> Is there any R# command which takes me back to the orinal place in
>>>>> the
>>>>> code I started code generation from. For instance, when I use
>>>>> "Create
>>>>> field" from a constructor after typing something like "_field =
>>>>> field", I
>>>>> would like to return back to the unfinished constructor body after
>>>>> completing _field declaration.
>>>>> Thank you
>>>>> Yuriy


0

Please sign in to leave a comment.