quarto-dev / quarto

Quarto open-source scientific and technical publishing system
https://quarto.org
GNU Affero General Public License v3.0
341 stars 28 forks source link

VSCode: make "remembering" the language of the Insert Code Cell command configurable #562

Open jimjam-slam opened 1 month ago

jimjam-slam commented 1 month ago

Apologies for not raising this when issue #425 was discussed a few weeks ago! I understand that for most teaching contexts (probably most contexts overall, tbh), the change implemented in #540 (switching from always prompting a language to assuming the same as another, previously used code cell) is desirable and a good default.

In my case, I write a lot of mixed R/OJS Quarto docs and would appreciate the ability to restore the previous behaviour (though I don't wish to impose it on anyone else!). Having to constantly change {r} to {ojs} because I used a single R chunk at the top of the doc discourages me from using the command at all. If it's possible to make this on option that is set to the new behaviour by default, that would be fantastic!

I'd also love it if the code cell snippet had a label option pre-populated, but maybe that's being greedy 😛

jimjam-slam commented 1 month ago

(I should note that this isn't a showstopper for me: I can simply set up snippets manually for R and OJS! But since OJS is designed to be complementary to the render-time languages, I feel like not at least having the option to switch back-and-forth discourages its use.)

DavisVaughan commented 2 weeks ago

Another toggle-able request here https://github.com/posit-dev/positron/issues/1646#issuecomment-2443986856

Seems reasonable


If it's possible to make this on option that is set to the new behaviour by default, that would be fantastic!

Yea I think that's what we'd do


for most teaching contexts (probably most contexts overall

I do think that a lot of Quarto usage is still primarily single language, and my goal for changing the feature to what it is now was driven by the hypothesis that most people only use 1 language when doing quarto work, and this pop up just got in the way of their writing flow (it did for me, at least, when working on blog posts)