2025-11-03
I find using Github PRs a great way of reviewing writing as well as code. This usually leads to a conversation about forcing a character length instead of the visual line wrapping when using VS code. As I'm not a VS code user myself I am often not able to show students who to do this.
Here is how to do this:
Cmd/Ctrl + Shift + PExtensions: Install ExtensionsSearch for βRewrapβ by stkb and install it
Set your preferred column width
Cmd/Ctrl + ,)Rewrap: ColumnSet a value such as 80
Use it manually
Run the command:
Rewrap: Rewrap Comment / Text at Column
(default shortcut: Alt + Q)
Optional: Auto-format on save
settings.json:
json
"[markdown]": {
"editor.defaultFormatter": "stkb.rewrap",
"editor.formatOnSave": true
}[markdown] with any other language block if needed, e.g.
[plaintext]Rewrap inserts real line breaks in the file.editor.wordWrap and editor.rulers only affect visual appearance β they
do not modify the text itself.