I’d like to add many text blocks to Julia code, like in Literate.jl.
Some text sources provide a long single line comment.
I am looking for a way to reformat text blocks to a suitable length and make them either block or single line comments.
After an edit, ideally the same can be produced again.
Do you know of a VScode extension or other macro utility which could help?
There is a VSCode extension called Rewrap (identifier: stkb.rewrap). I use it for comments only but the description says it can be used for any text blocks.
In the meantime, I found the Neovim integration, then gq formats the paragraph.
With your solution I do not need to learn Vim (there might be other reasons though).