Skip to content

vaehx/source-file-formatter

Repository files navigation

Source-File-Formatter

Command-line sourcefile formatting tool. This tool adds a new empty line at end of file by default, if not there yet. Also removes trailing whitespaces by default.

  • Replace space indent with tab indent: sff yourfile.txt
  • Replace tab indent with space indent: sff -s yourfile.txt
  • Replace spaces inside line with tabs: sff -s2t yourfile.txt
  • Replace tabs inside line with spaces: sff -t2s yourfile.txt
  • Specify size of tab in spaces before convert (default 4): sff -szb 8 yourfile.txt
  • Specify size of tab in spaces after convert (default 4): sff -sza 8 yourfile.txt
  • Disable automatic removal of trailing whitespaces: sff -k yourfile.txt

About

A very simple command-line source code formatter, that lets you fix your indentations and remove trailing whitespaces.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors