akalongman / sublimetext-codeformatter

Code Formatter plugin for ST2/ST3
MIT License
771 stars 131 forks source link

switch for language #271

Open canfoderiskii opened 7 years ago

canfoderiskii commented 7 years ago

add a new option like enable for each language.

For example:

"codeformatter_python_options": {
    "enable": true,
    ....
}
thecotne commented 7 years ago

i don't get it

and that's doing what?

canfoderiskii commented 7 years ago

@thecotne as the codeformatter supports various different language, but sometimes, for language Python, I'd prefer use other extensions which use yapf or pep8 to format the code and stick to the standard PEP8 style without the CodeFormatter. It would be better if the CodeFormatter add the support for yapf and pep8, or just a switch for a language (like Python) so that CodeFormatter won't function or respond any keybindings when I'm editing a file in that language (like Python).

thecotne commented 7 years ago

i don't get it

what keybindings you want to turn off? just turning off format_on_save and don't calling format action directly (with keybinding or command pallet)

i am using js formatter and css formatter from other packages that's not problem

canfoderiskii commented 7 years ago

@thecotne hi, the keybinding is 'ctrl+alt+f'. or is there any other way to disable the key for some of my sublime project?