When editing in VS Code, "Format Document" doesn't work. I get an error message:
Extension 'Python Language Basics' cannot format 'HelloWorld.py'
- Windows 10 OS version: Windows_NT x64 10.0.17134
- VS Code version: Code 1.39.2 (6ab5985, 2019-10-15T15:35:18.241Z)
- Python extension is installed, version: 2019.10.44104
- Paths to Python and Python scripts directory, are correct.
I've checked the docs and settings for formatting and autopep8 is specified. pip works and I've installed autopep8, but it isn't clear to me that this is necessary. In any case, it doesn't work. I have de-installed/re-installed Visual Studio Code twice, no effect on the problem
import sys, os
print('Hello, World.')
print('This is cool...')
print()
Modules should be placed on two lines, extra lines removed.