Tabs2spaces
Covert all tabs in spaces using the shell command expand
Installation
Add this line to your application's Gemfile:
gem 'tabs2spaces'
And then execute:
$ bundle
Or install it yourself as:
$ gem install tabs2spaces
Usage
Example of basic usage convert tabs to 2 spaces in all files .rb inside the actual folder (./)
cd /ruby_project_folder
tabs2spaces
Parameters
tabs2paces -n NUMBER -p "PATTERN"
NUMBER: number of spaces to replace the tab by default is 2 (OPTIONAL) PATTERN: Pattern to determine the files by default is ".rb", use ".js" (OPTIONAL)
Sintaxis
tabs2paces [] DIRECTORY
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request