codetour icon indicating copy to clipboard operation
codetour copied to clipboard

Allow clicking gutter icon

Open pozil opened this issue 3 years ago • 3 comments

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

pozil avatar Feb 11 '21 19:02 pozil

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.

lostintangent avatar Feb 11 '21 20:02 lostintangent

Got it thanks for the quick reply @lostintangent.

pozil avatar Feb 12 '21 17:02 pozil

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

hitzhangjie avatar Oct 11 '23 03:10 hitzhangjie