quarto-dev / quarto-dev/quarto

[VS Code] add setting for default language

Open
#405 3 comments 10 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

vscode
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"
}

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.