Skip to content

The commands "Next Method" and "Previous Method" don't clear selection and move caret if a selection is active #77393

@vsfeedback

Description

@vsfeedback

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work]
When using the commands "Edit/Next Method" or "Edit/Previous Method", if there's a selection a caret appears on the method as normal, but the selection remains active, and moving with the arrow keys moves the caret back to the selection, and typing text types the first character on the selection, instead of on the caret besides the method.


Original Comments

Anonymized GDPR on 10/31/2024, 02:01 AM:

Thanks for your feedback! In order for us to investigate this further, I need to confirm something with you could you please provide repro steps or some screenshots, a more detailed description of the faulty behavior and the actions you were taking when the issue appeared to help us better understand this scenario? What is the actual result and which result do you expect to happen? It would be very helpful if you could provide a sample solution that has this problem.

Trinidad Sibajas Bodoque on 10/31/2024, 04:31 PM:

Sorry, I forgot to mention it’s for C# code. Having this C# code:

class Program
{
    static void Main(string[] args)
    {
    }
}

Steps:
(1) Select the first word “class”.
(2) Execute the menu item “Edit -> Next Method”.
(3) Write any character.

Expected result after doing step 2:
The selection should be cleared, and the caret should move to the start of the “Main” method (right to the left of “static”).

Actual result after doing step 2:
The caret apparently moves to the correct place (at least the visual caret representation appears there), but the selection is not cleared.

Expected result after doing step 3:
The character should appear at the caret position, to the left of “static”.

Actual result after doing step 3:
The written character substitutes the selected text (“class”).

If instead of doing step 3 we press one of the keyboard arrow keys to move the caret, the caret returns to the selected text (“class”) and moves from there, instead of from the line the method is in.

Feedback Bot on 10/31/2024, 06:11 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.

Feedback Bot on 11/20/2024, 10:58 PM:

Thank you for sharing your feedback! Our teams prioritize action on product issues with broad customer impact. See details at: https://docs.microsoft.com/en-us/visualstudio/ide/report-a-problem#faq. In case you need answers to common questions or need assisted support, be sure to use https://visualstudio.microsoft.com/vs/support/. We’ll keep you posted on any updates to this feedback.

Feedback Bot on 2/7/2025, 09:40 PM:

We detected that this issue hasn’t received a lot of activity, votes, or comments in the past 90 days. Based on this, the issues severity and affected area, it’s my experience that this issue is unlikely to get fixed. To improve the situation, consider following best practices for quality problem reports, and giving us more details on how this issue is impacting you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-IDEhelp wantedThe issue is "up for grabs" - add a comment if you are interested in working on it

    Type

    No type

    Projects

    Status

    InQueue

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions