Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

formatComments

Control whether whitespace should be inserted at the beginning and end of comments.

Though this option is set to false, comments contain leading or trailing whitespace will still be kept as-is.

Default value is false.

This option is renamed from padComments which is deprecated.

Example for false

Playground

/*comments*/ /* comments */

Example for true

Playground

/* comments */ /* comments */