-
Notifications
You must be signed in to change notification settings - Fork 52
How to enable formatting #63
Comments
bump |
|
Use
to format selected range. |
Hm, this doesn't seem to be working; my coc-settings.json has:
And I still have to manually call :Format for it to work. |
Try |
I am having same issue here as well, I cant seem to get formatting to work.
when i run black i get this
I have indented def run on purpose |
Adding the |
Is there a trick to getting formatting to format as you type? |
As far as I know even if you do this trick it will decrease significantly your typing experience. It's much better formatting on save ;D |
Code formatting is useful in general. But sometimes, I just do not want to use it. For example, when I want to append the library to Could I save file without For example, |
Could someone post a full config that makes it work? |
Agree, it would be good to have a working example. I've been at this for a few days now on and off and can't get
|
This is super handy, for anyone on Linux like myself, this is the minimal config you need:
If you have python installed, CoC will prompt you to install black and you're done. Apologies I can't help with the Windows config. |
I am having trouble with formatting with black. Here is my pertinent setup:
When I save a file, it says "Formatted with Black" but nothing happens. I checked that black was working by using it in the terminal in my INTELenv and it worked. Though it wouldn't force 80 lines with the following command:
Could there be a plugin or other setting screwing things up? |
Unable to find from documentation how I should enable formatting which is "off" by default. It seems like there is no provision for
python.formatting.enabled
setting.The text was updated successfully, but these errors were encountered: