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


0
9 comments
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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
Avatar
Permanently deleted user

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.