quarto-dev / quarto

Quarto open-source scientific and technical publishing system
https://quarto.org
GNU Affero General Public License v3.0
280 stars 19 forks source link

VS Code: Format ColumnWrap on Save #366

Open signekb opened 4 months ago

signekb commented 4 months ago

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?

lwjohnst86 commented 3 months ago

I'd love this as well!