Skip to content
This repository has been archived by the owner on Jul 29, 2019. It is now read-only.
/ tabspaces Public archive

Convert Tabs to Spaces and Spaces to Tabs In Your Source Code!

License

Notifications You must be signed in to change notification settings

WestleyR/tabspaces

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TabSpaces - Convert Tabs to Spaces and Spaces to Tabs


This is no longer maintained, project has moved to: https://github.com/WestleyR/clint


Yes thats right, this can convert spaces to tabs, and tabs to spaces!


Install

git clone https://github.com/WestleyR/tabspaces
cd tabspaces/
make
sudo make install

Usage

To convert tabs to spaces in this go file:

$ tabspaces hello.go

Note: This will NOT mess up your gofmt assied from changing the tabs.


To convert spaces to tabs in this file:

$ tabspaces -t hello.c

Again, this wont screw-up any formatting you have.

You can also add the -v, --verbose flag to be more verbose:

$ tabspaces -v hello.go 
VERBOSE: Converting tabs to 4 spaces.
Done: hello.go
VERBOSE: Total tabs replaced: 519

Releases

No releases published

Packages

No packages published