sindresorhus / editorconfig-sublime

Sublime Text plugin for EditorConfig - Helps developers maintain consistent coding styles between different editors
MIT License
1.77k stars 108 forks source link

Add a snippet for EditorConfig file content #50

Closed kipit closed 8 years ago

kipit commented 8 years ago

Event if the scope of EditorConfig files is very limited, this snippet ease the creation of EditorConfig files. All parameters except tab_size are used, as this one has a default based on indent_size.

sindresorhus commented 8 years ago

Good idea :) Can you add something to the readme that it's included and how to use it?

kipit commented 8 years ago

No sure the tips section is the suitable place for the snippet how-to, I've oriented the text in a tips way.

kipit commented 8 years ago

I've added a small precision for user with conflicting snippet.

kipit commented 8 years ago

Any advice on this ?

kevva commented 8 years ago

:+1: lgtm

Another option would be to use a default value with all the possible values, something like tab|space but this would make an invalid EditorConfig by default.

I'm not against keeping it as is.

sindresorhus commented 8 years ago

Sorry about the delay @kipit. I got too busy in real life. I added some inline comments, but generally looks really good :)

kipit commented 8 years ago

No problem for the delay. Your comments have been integrated, except the scope one where I need feedbacks.

sindresorhus commented 8 years ago

Awesome! Landed at last. Thanks for persevering through this :)