You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
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
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.
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 👍🏼
Activity
lostintangent commentedon Feb 11, 2021
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.
pozil commentedon Feb 12, 2021
Got it thanks for the quick reply Jonathan Carter (@lostintangent).
[-]Open step when clicking on CodeTour icon in code editor margin[/-][+]Open step when clicking on CodeTour gutter glyph[/+][-]Open step when clicking on CodeTour gutter glyph[/-][+]Allow clicking gutter icon[/+]hitzhangjie commentedon Oct 11, 2023
could we do this in another way.
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.
harsha-sapientai commentedon Jul 26, 2024
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)
lostintangent commentedon Aug 7, 2025
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 👍🏼