hi im taking an intro to CS class and we've been told to use the compiller visual studio code however i am unable to type anything into the terminal window to actually run my code. the only thing present is a computer path and a microsoft version. It won't allow me to use the "$" which I need to get my code to run. On zoom my professors terminal window was completely empty where as mine contains what's down below by default . "Microsoft Windows [Version 10.0.19044.2251] (c) Microsoft Corporation. All rights reserved. C:\Users\mayca>"
hi im taking an intro to CS class and we've been told to use the compiller visual studio code however i am unable to type anything into the terminal window to actually run my code. the only thing present is a computer path and a microsoft version. It won't allow me to use the "$" which I need to get my code to run. On zoom my professors terminal window was completely empty where as mine contains what's down below by default .
"Microsoft Windows [Version 10.0.19044.2251]
(c) Microsoft Corporation. All rights reserved.
C:\Users\mayca>"
It sounds like you may be in the terminal window in Visual Studio Code, but you are not in a specific shell or command prompt. The "$" symbol is typically used to indicate that you are in a shell, such as Bash or PowerShell, where you can execute commands.
To start a shell in the terminal window, you can try the following steps:
- Click on the "Terminal" menu in the top toolbar of Visual Studio Code.
- Select "New Terminal" to open a new terminal window.
- You should now be in a default shell or command prompt. You can check which shell you are in by typing "echo $SHELL" and pressing enter. This should display the path to your default shell.
- From here, you can navigate to the directory where your code is located and execute the necessary commands to compile and run it.
If you are still having trouble, you may want to reach out to your professor or TA for additional assistance. They should be able to provide more specific guidance for your course and the tools being used.
Step by step
Solved in 2 steps