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

[VS Code] add setting for default language #405

Open JosiahParry opened 2 months ago

JosiahParry commented 2 months ago

When using VS Code with Quarto inserting a code chunk always adds the code chunk type to python.

It would be desirable to be able to set a global or workspace setting to change the default code chunk type. This could be a scalar string value that would be used to populate the code chunk. For example, the setting could look like:

{
  "quarto.cells.defaultLanguage": "r"
}

Related: https://github.com/quarto-dev/quarto/issues/170