typstfmt icon indicating copy to clipboard operation
typstfmt copied to clipboard

Remove linebreaks within a paragraph when performing auto formatting

Open yjcui opened this issue 10 months ago • 4 comments

First thanks for this great extension!

I am using this extension with VSCode. When performing file formatting, automatic linebreaks will be inserted to break a paragraph, leaving a weired display of multiple lines with different length. Is it possible to keep one paragraph as a single line (in the sense that only one line number for one paragraph in VSCode) and leave the 'linebreak' to the word wrap function from VSCode?

Example

This is what initially put in VSCode editor, and what I want as the whole paragraph is one line (line 34). image

This is what I got after applying formatting through Typst LSP. One paragraph got broken into multiple lines (line 34-47). image

yjcui avatar Mar 29 '24 02:03 yjcui