Skip to content

Allow clicking gutter icon #131

Closed
Closed

Description

@pozil

When reading code, it would be helpful if we could open a step by clicking on the CodeTour icon that's located in the code editor margin next to the line numbers.

Screen Shot 2021-02-11 at 20 03 24

Activity

  1. lostintangent commented on Feb 11, 2021

    @lostintangent
    Member

    Unfortunately, this isn't possible until VS Code address a longstanding API request. If you hover over the line that has the gutter glyph, you should see a hover info that includes a link to start the tour. That said, this isn't super discoverable, and so I'd love to enable a click behavior as you suggested.

  2. pozil commented on Feb 12, 2021

    @pozil
    Author

    Got it thanks for the quick reply Jonathan Carter (@lostintangent).

  3. changed the title [-]Open step when clicking on CodeTour icon in code editor margin[/-] [+]Open step when clicking on CodeTour gutter glyph[/+] on Feb 12, 2021
  4. changed the title [-]Open step when clicking on CodeTour gutter glyph[/-] [+]Allow clicking gutter icon[/+] on Apr 18, 2021
  5. hitzhangjie commented on Oct 11, 2023

    @hitzhangjie

    could we do this in another way.

    1. we create a codetour discussion in main.go:9
    2. we allow some shortcut like 'f8' to trigger following action
      • check the codetour, if we add some discussion at this location main.go:9
        • if yes, it means we have clicked on gutter, then we can show the discussion (mabye we could optionally select the step in the codetour explorer or add another shortcut to do that).
        • if not, do nothing.

    Really hope we can support this, here's an screenshot when I reading code in big project, the codetour contains many steps.
    If we support this feature, it will be really helpful.

    image

  6. harsha-sapientai commented on Jul 26, 2024

    @harsha-sapientai

    Is there any other way to implement the gutter icon actions currently I am currently using codelens as a bypass method Philippe Ozil (@pozil) hitzhangjie (@hitzhangjie) Jonathan Carter (@lostintangent)

  7. lostintangent commented on Aug 7, 2025

    @lostintangent
    Member

    As suggested, I introduced a codelens that will render above any lines that include a CodeTour gutter marker. Let me know how this feels/works in practice 👍🏼

    Image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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