If you open the VSCode REPL with the dedicated command, your code lines should be run there. Maybe the issue is that you opened your REPL by typing julia into a VSCode terminal? In which case VSCode will launch a new REPL which it recognizes as a Julia REPL (and not a simple terminal)
1 Like