-2
I’ve been through the same problem, has a way that works but is not ideal believe.
Note that at the top of the VS has the tab 'DEBUG', click on it.
Open a window with some possibilities, click on "RUN WITHOUT DEBUGINGG".
After that your code will open on the terminal and will work.