I have a fresh install of VS Code and am working to get my python interpreter set up. I prefer to run my code through the terminal line by line, so I have set python.REPL.sendToNativeREPL: false
in settings.json. This successfully sends code to the terminal, but it seems to add additional indentation (see screenshot below), causing the error IndentationError: unexpected indent
. For longer sections of code, it seems that an additional indent is added to the front of each new line. How can I address this issue?
I've searched for a relevant answer but can't find much regarding this setting online.
This is a known issue for python version 3.13.X. Please switch to version 3.12.X. https://github.com/microsoft/vscode-python/issues/24256