sindresorhus / atom-editorconfig

Helps developers maintain consistent coding styles between different editors
https://atom.io/packages/editorconfig
MIT License
812 stars 80 forks source link

How to use it ! #195

Closed preejackie closed 7 years ago

preejackie commented 7 years ago

Hi My mentoring organisation uses editorconfig. I didn't use it so far in my projects. As a beginner how I should use editorconfig in atom. I found docs not helping me. Please provide me guidelines for using editorconfig. Thank you...

alaycock commented 7 years ago

The editorconfig website should provide all the documentation you need to write your first .editorconfig file. To use the plugin you just need to install it, and the .editorconfig file should do the rest of the work.

preejackie commented 7 years ago

And one more doubt.. If I write a .editorconfig file and then I begin to code in my normal style. After completing .editorconfig will do the indentation work for me ?

alaycock commented 7 years ago

This plugin changes your editor settings so any new code you write will match your settings (spaces vs tabs, etc). If you want to fix old code, check out something like atom-beautify.

If you don't indent your code, this plugin won't do anything. You still have to worry about indentation yourself.

preejackie commented 7 years ago

Thank you @alaycock !