quarto-dev / quarto-dev/quarto
R code chunks in VS Code visual mode do not auto-indent
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 645
- Forks
- 62
- Avg merge
- 17h 42m
- Merged PRs (30d)
- 13
Description
- From command pallette create new quarto document
- save to random location (remember to delete it)
- Right click editor to activate visual editing (not available without saving for some reason)
- cmd + shift + i for new code chunk replace python with r
- Type
rnorm(100) |>and press enter.
Following the pipe operator and a new line the new line should be indented. It is not in this case.
Quarto version 1.3.313
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
Reproduce the issue in a saved Quarto document using VS Code visual mode and an R code chunk, following the listed steps. Start by tracing the visual editor's handling of R chunks and indentation after the pipe operator; done means pressing Enter after rnorm(100) |> indents the new line as expected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r, typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 38/100