quarto-dev / quarto-dev/quarto

VS Code: Format ColumnWrap on Save

Open
#366 1 comment 1 reaction 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

Hi,

I'm fairly new to Quarto, and I can't seem to figure out a way to wrap .qmd files on Save.

The desired output is as follows (line breaks at 72 characters):
image

Which I can achieve by opening the file in Visual Mode with these settings in my .vscode/settings.json file:

  "quarto.visualEditor.markdownWrap": "column",
  "quarto.visualEditor.markdownWrapColumn": 72,

Is there a way to achieve this line break formatting on save instead having to open the file in Visual Mode?

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 with the .vscode/settings.json options for quarto.visualEditor.markdownWrap and quarto.visualEditor.markdownWrapColumn, then trace how the VS Code integration applies them in Visual Mode. Determine whether that behavior can also run on save; done means .qmd files receive the requested 72-character line breaks without opening Visual Mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.