quarto-dev / quarto-dev/quarto
[VS Code] add setting for default language
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Description
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"
}
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the VS Code integration that inserts code chunks and trace how Python is selected as the default language. Check the extension's settings registration and chunk-insertion path, then verify that a global or workspace setting such as quarto.cells.defaultLanguage changes the inserted language and that the existing default still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100