quarto-dev / quarto-dev/quarto

VS Code Extension: Formatter forces 4 space indentation

Open
#377 0 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

As best I can tell, formatting a .qmd file with the Quarto extension will reformat everything to four space indentation even if tabSize is configured to 2 for the document (or for the entire [quarto] language).

(Formatting the same files with the language mode set to R Markdown will produce no such issue.)

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 by reproducing formatting for a .qmd file in the Quarto VS Code extension with tabSize set to 2, then compare the result with the R Markdown language mode. Trace the formatter entry point responsible for the .qmd behavior; done means formatting respects the document or [quarto] tabSize setting instead of forcing four spaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.