Skip to content

use document highlighting to show matching control flow statements #2004

Open
@Techatrix

Description

@Techatrix

The textDocument/documentHighlight request can be used to highlight control flow statements like continue and break with their for or while loop and vice versa. The end result should look similar to the following demo:

out.mp4

This could also be applied to symbol references i.e "Find All References" / "Go to References". Perhaps other keywords like defer, try, return could get similar features.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions