Rewrap: find the extension --> click the little gear icon --> click "Copy":
Name: Rewrap
Id: stkb.rewrap
Description: Hard word wrapping for comments and other text at a given column.
Version: 1.16.3
Publisher: stkb
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=stkb.rewrap
To create the problem:
Create a new file. Set the syntax highlighting to Plain Text. Copy and paste this into it:
```py
# dynamically allocate a pointer variable named `var`, dynamically wwwwwwwwwwwwwwwwwwwwwweeeallocate an integer object with a `0` in it
var = 0
Place your cursor on the long comment line. Press Alt + Q to hard wrap.
It works fine.
Now set the language to `Markdown`. Put the long comment line back how it was. Alt + Q no longer works to hard wrap it, but it should.
Update: it's not just inside code blocks in Markdown files, it's *any line beginning with `#`*. It won't hard wrap those lines in Markdown files.
Using Alt + Q to hard-wrap comment lines inside Markdown files does not work.
Version info.
VSCode: Help --> About:
Rewrap: find the extension --> click the little gear icon --> click "Copy":
To create the problem:
Create a new file. Set the syntax highlighting to
Plain Text
. Copy and paste this into it: