Releases » Command Line » tabindent
Adds or removes tabs in front of lines passed via stdin, changes indentation style.
Original linefeed style (win or unix) is kept.
tabindent

Notes:

Tool expects input from stdin. Run it with tabindent -? for help.
First released: 2009

Adds or removes tabs in front of lines passed via stdin, changes indentation style..
Original linefeed style (win or unix) is kept.

Usage: tabindent [-t num] [-c num] [-w num] [-s] [-i] < …

Options:
  -h  show this usage information
  -i  indent by 'num' tabs
  -u  unindent by 'num' tabs
  -c  indent by 'num' chars; can be combined with -i or -u
  -w  set tab width to 'num' characters (default: 4)
  -s  indent using spaces only (no tabs)

Examples:
  tabindent -w 4 < myfile.cpp > newfile.cpp
  tabindent -w 4 -s < myfile.cpp > newfile.cpp

Sets errorlevel 1 on error, 0 on success.
 

Downloads:

tabindent-121113.zip (31 kB)  13 ½ years ago