I can\'t seem to open basic text files when I run a python script in VS Code, the code runs fine when I use it in Idle but VSCode will give me a FileNotFound error, is there
In your VSCode for Windows
File --> Preferences --> Settings --> (User)Extensions --> Python -->
Terminal: Execute In File Dir --> Check It
or
File --> Preferences --> Settings --> Search Settings --> python.terminal.executeInFileDir
Whenever you need to debug, you need to change the path of the file to open it in debug mode by simply:
That should help you!
Try setting
"python.terminal.executeInFileDir": true,
in your VSCode Settings