pulsar/packages/whitespace
2023-04-03 20:38:07 -07:00
..
lib Remove stray console.log from whitespace package 2023-04-03 20:38:07 -07:00
menus Bundle whitespace 2023-01-06 10:05:03 -08:00
spec Bundle whitespace 2023-01-06 10:05:03 -08:00
package-lock.json Bundle whitespace 2023-01-06 10:05:03 -08:00
package.json Update whitespace package.json 2023-01-06 10:07:17 -08:00
README.md Bundle whitespace 2023-01-06 10:05:03 -08:00

Whitespace package

Strips trailing whitespace and adds a trailing newline when an editor is saved.

To disable/enable features for a certain language package, you can use syntax-scoped properties in your config.cson. E.g.

'.slim.text':
  whitespace:
    removeTrailingWhitespace: false

You find the scope on top of a grammar package's settings view.

Note: for .source.jade, .source.diff, .source.pug and .source.patch, removing trailing whitespace is disabled by default.