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
Please sign in to leave a comment.
Have you tried the VS command "Navigate Back"?
"Yuriy Solodkyy" <y.dot.solodkyy@gmail.com> wrote in message
news:ecc8d37914bc7a8c8dee96d5fa83f@news.jetbrains.com...
>
>
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!"
>> 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
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
Thank you, actually sequence of VS Ctrl+- works fine for me, I did not realize
that I can use it.
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
Aha - I have been using Ctrl-Backspace and wondering why this did not work!
Has the shortcut key changed in recent builds?
Hello Sean,
I believe, it was CtrlShiftBackspace from the very beginning.
>> And also you can try ReSharper > Go To > Last Edit Location command
>> (Ctrl-Shift-Backspace).
>>
Best regards,
Andrey Simanovsky
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
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!"
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
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.
>>
>> 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