Hi , I can’t see « python formatting provider » what could be the reason ?
@ramanjaneyuluv479 Жыл бұрын
Same here
@Fluttertrends Жыл бұрын
Maybe you just added the VS Code extension if so try to check the box format on save searching "format on save" -> Settings -> Editor: format on save and in your settings.json add: "[python]": { "editor.defaultFormatter": "ms-python.black-formatter" } To find the settings.json search for setting. in the Settings search box
@RemiGft Жыл бұрын
@@Fluttertrends Thanks a lot! I managed to activate "black" by checking "format on save" and when trying to save a Python file, VS Code asked me if I wanted to use "Black" to format the text by default.
@BadBoyMT0710 ай бұрын
I have no 'Python formatting provider' option
@YoungHumanClub10 ай бұрын
same here
@FedericoTartarini10 ай бұрын
You can follow this guide learn.microsoft.com/en-us/visualstudio/python/formatting-python-code?view=vs-2022
@ApexWalrus9 ай бұрын
That is unfortunately for Visual Studio, not Visual Studio Code
@Hex02024 ай бұрын
I'm a complete begginer to python,took me hours to look for the correct formatter settings but your video made it so simple lol thank you very much ! (also liked the var example at the end) help me verify its working
@FedericoTartarini4 ай бұрын
Glad it helped! Thank you for letting me know
@yanir.tzabary2 ай бұрын
i dont have it on windows
@davidfilestra8826 Жыл бұрын
Thank you for video! Formatting makes the code so beautiful and easily readable but I don't understand why Format On Type doesn't work, have encountered this issue?
@FedericoTartarini Жыл бұрын
No I have not encountered it but i manly use pycharm. I do not use vscode much.
@morgana6598 Жыл бұрын
Great Video, thank you so much :)
@FedericoTartarini Жыл бұрын
Glad you enjoyed it!
@SushilKoirala-p3f Жыл бұрын
can I use single quotes with black
@FedericoTartarini Жыл бұрын
Black is quite opinionated so I am not sure you can change that. Look at their official documentation