format-javascript-comment

0.2.5 • Public • Published

Format JavaScript comment for Atom

Reformats your multiline comments into beautiful, maximum 80 character long lines with minimum raggedness. ✨

What?

Usage example

Features

  • Single line comments (// Whatever)
  • Multiline comments (* Whatever)
  • JSDoc tags always start on a new line (* @param {string} name Some description.)
  • If no selection is made, the selection is automatically created by examining the lines surrounding the cursor.
  • If some selection is made, only the lines that are within the selection will be processed. However, lines can be selected partially.
  • Completely empty comment lines will be preserved.
  • Processing of multiple comments at once using multiple cursors.

How?

  1. Install format-javascript-comment (either through the package manager or through apm install format-javascript-comment).
  2. (Partially) select the lines the comment encompasses.
  3. Open command palette (Cmd+Shift+P) and (partially) type "format comment".
  4. Press enter.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.2.515latest

Version History

VersionDownloads (Last 7 Days)Published
0.2.515
0.2.40
0.2.30
0.2.20
0.2.10
0.1.60
0.1.51
0.1.40
0.1.30
0.1.20
0.1.10

Package Sidebar

Install

npm i format-javascript-comment

Weekly Downloads

15

Version

0.2.5

License

MIT

Last publish

Collaborators

  • amann