Oct-19-2021, 05:09 PM
What I meant by “code editor window” was the window that appears above the REPL/terminal when you open a file in VS Code. There is where Intellisense operates.
If I try to run the program mentioned earlier in this thread from the code editor window,
then I get an undefined variable error message in the REPL/terminal.
If I run the program from within the REPL/terminal, I don’t get an error.
Also, when I write the code for the program mentioned earlier and press the Run Code triangle button in the upper right hand side,
I don’t get the value for x.
Instead, I get this:
I hope I’m making sense. I have no problem clarifying my issue.
If I try to run the program mentioned earlier in this thread from the code editor window,
then I get an undefined variable error message in the REPL/terminal.
If I run the program from within the REPL/terminal, I don’t get an error.
Also, when I write the code for the program mentioned earlier and press the Run Code triangle button in the upper right hand side,
I don’t get the value for x.
Instead, I get this:
Output:[Running] python -u "c:\Users\Owner\Documents\New folder\stuff.py"
[Done] exited with code=0 in 0.086 seconds
I know I can run code from within the REPL/terminal but I also want to run code from the code editor window. I hope I’m making sense. I have no problem clarifying my issue.