In lesson 1-8 of the python course, I can not use “format document” in the command palette. I have installed many text formatters in VScode, like the suggested ones and XML tools, Json tools. Still, I face below error. Can anybody help, please?
Error: There is no formatter for ‘plaintext’ files installed.
I would ask myself why VSCode thinks that the file is “plaintext” instead of “python”. Did you name the source file correctly with a .py extension? Does any of your other extensions mess up the detection of python files? Can you change the file type manually to Python by clicking on “Plain Text” in the status bar?