Generate your .editorconfig file.
npm install fast-editorconfigAn easy way to generate your editorconfig files.
npm install --global fast-editorconfig
After install Fast Editorconfig you have a command called fec in your console.
>FE create a new file of .editorconfig but if you already have an .editorconfig file in your project and need just add more options to him don't worry, you can do it as well.
Go to the directory which you want add an .editorconfig file and type:
fec --type js --size 2 --style space
it's will generate an .editorconfig with this content:
``
#editorconfig.org
[*.js]
indent-size = 2
indent-style = space
`
#### Help
- Command: --help-h
- Alias:
#### Version
- Command: --version-v
- Alias:
#### File type
- Command: --type-t
- Alias: all
- Values: ,none - any language type.
none is the same that all in this case
##### Some features:
You can type the entire name of the language, eg:
fec -t ruby -l 2 -s space
And the results is:
``
[*.rb]
indent-size = 2
indent-style = 2
But wait, the languages supported for now is:
- javascript - .jsruby
- - .rbpython
- - .py
If you type all time all name of the language and want this feature just open an issue.
#### Size of the indent
- Command: --size-l
- Alias: integer
- Values:
#### Style of the indent
- Command: --style-s
- Alias: space
- Values: - tab
#### Root
- Command: --root-r
- Alias: none
- Values: .
none is the same as true
#### Trim Trailing Whitespace
- Command: --whitespace-e
- Alias: none
- Values: - false
none is the same as true
#### Max line length
- Command: --maxline-m
- Alias: integer
- Values:
#### New line
- Command: --newline-n
- Alias: none
- Values: - false
none` is the same as true
Fork the project and send pull requests.
Open issues
MIT