quarto-dev / quarto-dev/quarto

R code chunks in VS Code visual mode do not auto-indent

Open
#150 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
645
Forks
62
Avg merge
17h 42m
Merged PRs (30d)
13

Description

  1. From command pallette create new quarto document
  2. save to random location (remember to delete it)
  3. Right click editor to activate visual editing (not available without saving for some reason)
  4. cmd + shift + i for new code chunk replace python with r
  5. 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

  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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.