# Working with text and comments

**URL:** <https://discourse.julialang.org/t/working-with-text-and-comments/72207>\
**Category:** VS Code\
**Created:** [November 28, 2021, 6:18pm UTC](https://discourse.julialang.org/t/working-with-text-and-comments/72207 "2021-11-28T18:18:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bardo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bardo/32/21601_2.png) [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Post date:** [November 28, 2021, 6:18pm UTC](https://discourse.julialang.org/t/working-with-text-and-comments/72207/1 "2021-11-28T18:18:24Z")

</div>

Hi,

I’d like to add many text blocks to Julia code, like in [Literate.jl](https://docs.juliahub.com/Literate/XPnWG/2.6.0/index.html).

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?

---

<div class="post-metadata">

**Author:** ![piechologist](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piechologist/32/27662_2.png) [@piechologist](https://discourse.julialang.org/u/piechologist)\
**Post date:** [November 28, 2021, 9:26pm UTC](https://discourse.julialang.org/t/working-with-text-and-comments/72207/2 "2021-11-28T21:26:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Bardo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bardo/32/21601_2.png) [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Post date:** [November 28, 2021, 9:46pm UTC](https://discourse.julialang.org/t/working-with-text-and-comments/72207/3 "2021-11-28T21:46:23Z")

</div>

@piechologist - `ALT-q` then works like a charm, thx!

In the meantime, I found the [Neovim integration](https://github.com/asvetliakov/vscode-neovim), then `gq` formats the paragraph.  
With your solution I do not need to learn Vim (there might be other reasons though).
