dprint-plugin-typescript icon indicating copy to clipboard operation
dprint-plugin-typescript copied to clipboard

Option to line wrap text in JS docs

Open dsherret opened this issue 4 years ago • 2 comments

There should be a way to line wrap text in jsdocs based on the line width. If we do this though then we'll need a way to disable it on a case by case basis though.

dsherret avatar Sep 02 '21 03:09 dsherret

Personally, I am interested not only in JS docs, but also in comments like:

// this is the first lone of comment, but
// this line still belongs to the previous one
// and all three line should be adjusted according to width
function test() {
[...]

Result with width 100:

// this is the first lone of comment, but this line still belongs to the previous one and all three
// line should be adjusted according to width
function test() {
[...]

Bessonov avatar Dec 25 '23 19:12 Bessonov

This could be one approach to formatting comments: https://github.com/dprint/dprint-plugin-typescript/issues/580

adrian-gierakowski avatar Dec 25 '23 20:12 adrian-gierakowski