How to redo a block of text or a long comment according to 80 columns?
I donβt want it to simply display word wrap (this is easy to do with Edit β Toggle Word Wrap or installation "editor.wordWrap": "on"), but I want it to actually insert hard line breaks. This feature is called "fill in paragraph" in some editors.
For instance:
// This is a very long comment. I would like for this comment to occupy multiple lines rather than a single line, so that it is easy to read for other people.
Now I would like to press a key to get:
// This is a very long comment. I would like for this comment to occupy
// multiple lines rather than a single line, so that it is easy to read for
// other people.
source
share