An option to wrap lines after periods would be nice.
For example:
/**
* This is some example text. Here is a second sentence.
*/
after formatting becomes
/**
* This is some example text.
* Here is a second sentence.
*/
Some edge cases:
- option to wrap/not wrap lists after periods.
eg.
/**
* This is some example text. Here is a second sentence.
* - This is a list item. This is a fourth sentence.
*/
- When both line wrapping after periods and wrapping in lists are enabled becomes:
/**
* This is some example text.
* Here is a second sentence.
* - This is a list item.
* This is a fourth sentence.
*/
- When line wrapping after periods is enabled but wrapping in lists is disabled becomes:
/**
* This is some example text.
* Here is a second sentence.
* - This is a list item. This is a fourth sentence.
*/
- Tables. When formatting tables. do not insert line breaks:
/**
* This is some example text. Here is a second sentence.
* | Header | Header 2 |
* |--------|-----------|
* | Foo | Bar. Baz. |
*/
becomes
/**
* This is some example text.
* Here is a second sentence.
* | Header | Header 2 |
* |--------|-----------|
* | Foo | Bar. Baz. |
*/
- Code blocks. Don't touch them at all.
An option to wrap lines after periods would be nice.
For example:
after formatting becomes
Some edge cases:
eg.