quarto-dev / quarto

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

With VS Code extension, "Quarto: Insert Code Cell" requires user to choose language for each new chunk #425

Open juliasilge opened 2 months ago

juliasilge commented 2 months ago

When using the VS Code extension, you can use "Quarto: Insert Code Cell" (such as via its keyboard shortcut) to make a new code cell/chunk. However, it requires the user to choose the language every time:

https://github.com/quarto-dev/quarto/assets/12505835/955130ea-37ff-41e2-9734-bcc9eb23fc29

We are hearing from users that they would prefer the RStudio behavior where making a new code chunk uses the language from the previous code chunk. It is fine to have users choose for the first chunk, but it doesn't feel great to have to keep choosing the language over and over.

mcanouil commented 2 months ago

FYI:

mikemahoney218 commented 1 month ago

A bit of a delayed response but FWIW, I think this is meaningfully distinct from #405. Ideally this would mean the language of each file is detected, irrespective of user profile settings, and automatically populated for all but the first cell.