I have a new computer at work and I am setting up Visual Studio Code.
I write a simple function in the editor and send it to terminal, I get the following error:
IndentationError: unexpected indent
I tried to remove indentation in formula definition of editor, and it worked:
Is there something I can do to correct this issue, as it will wreak havoc on more complex functions and loops
This is a known CPython issue on Windows (it has nothing to do with Visual Studio Code): https://github.com/python/cpython/pull/124119
As a workaround, you can either switch back to Python 3.12, or use the "Native REPL" in Visual Studio Code, which is not affected by this issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With