microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.04k stars 29.21k forks source link

Feature Request: Navigate Between Methods #226398

Closed Mark-Phillipson closed 1 week ago

Mark-Phillipson commented 2 months ago

Description: I would like to request a feature to navigate between methods in the current file in Visual Studio Code. This feature is available in Visual Studio and is extremely useful for quickly moving through code, especially in large files with many methods.

Feature Details:

Use Case: As a developer, I often need to navigate between methods in my code files. Currently, I have to use the "Go to Symbol..." command and type the method name, which is not as efficient as having dedicated commands to jump to the next or previous method. This feature would greatly enhance my productivity and streamline my workflow.

Example: Here is an example of a C# file where this feature would be beneficial:

private async Task OnValueChangedPageSize(int value)
{
    pageSize = value;
    pageNumber = 1;
    await LoadData();
}

private async Task PageDown(bool goBeginning)
{
    if (goBeginning || pageNumber <= 0)
    {
        pageNumber = 1;
    }
    else
    {
        pageNumber--;
    }
    await LoadData();
}

private async Task PageUp(bool goEnd)
{
    int maximumPages = (int)Math.Ceiling((decimal)totalRows / pageSize);
    if (goEnd || pageNumber >= maximumPages)
    {
        pageNumber = maximumPages;
    }
    else
    {
        pageNumber++;
    }
    await LoadData();
}

In the above example, having commands to navigate to the next or previous method would allow me to quickly move between OnValueChangedPageSize, PageDown, and PageUp methods without having to manually scroll or use the "Go to Symbol..." command.

Conclusion: Implementing this feature would bring Visual Studio Code closer to the functionality offered by Visual Studio and improve the overall coding experience for developers who frequently work with large code files.

Thank you for considering this feature request.

vs-code-engineering[bot] commented 2 months ago

This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

vs-code-engineering[bot] commented 3 weeks ago

This feature request has not yet received the 20 community upvotes it takes to make to our backlog. 10 days to go. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

vs-code-engineering[bot] commented 1 week ago

:slightly_frowning_face: In the last 60 days, this feature request has received less than 20 community upvotes and we closed it. Still a big Thank You to you for taking the time to create this issue! To learn more about how we handle feature requests, please see our documentation.

Happy Coding!