There are hundreds of answers on youtube and stackoverflow but there is no single solution. After reading some comments, i installed code runner extension that gave me errors and more trouble, Plus i want to use the terminal just like in the photo, not output. As you can see in the code, he uses terminal for input as well. Can someone help me with this problem please.
On the provided screenshot the user is simply opening a terminal from VS Code (which can be done by navigating to Terminal->New Terminal
or by doing Ctrl+J
) and then typed python.
Regarding the $
sign, this is because the user has a setting activated to minimise their current working directory path, you can do this on ubuntu by modifying the PROMPT_DIRTRIM
param in .bashrc, see here.