quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.88k stars 318 forks source link

Add comment-pipe shortcuts to IDE editor modes #533

Open cscheid opened 2 years ago

cscheid commented 2 years ago

(cf. https://github.com/quarto-dev/quarto-cli/discussions/528)

IDE modes should have a shortcut that adds a comment-pipe to a code cell. In general, the IDE will have to know about comment syntax for a number of different languages, but I think it should be possible for us to do the right thing in RStudio, in the VS Code extension, and in emacs.

In general, we'd want to add a custom API entry point to our (future) LSP.

eteitelbaum commented 1 year ago

I would like to endorse this idea. Typing "shift #" and then "shift |" gets cumbersome. It would be nice to have a hash pipe (#|) shortcut!