问题
My VS code terminal was working fine, until one day when I tried to work on a project, that was still open in VS code, my terminal didn't allow me to type any commands. I couldn't type anything. This is the screen that I get.
回答1:
Okay, for those of you struggling with the same problem, I've managed to solve it by clicking on the drop-down menu that says powershell
and changing it to cmd
.
回答2:
For me, I tried using Powershell/CMD/Bash and I was having errors/blank terminal. I found typing echo hello
and pressing CTRL + C
made it appear. So in fact, everything was working, my terminal was just blank/glitched out, but was really accepting input.
回答3:
I changed from bash to powershell in terminal first but the command prompt still not shown. Then I navigate to File -> Perferences -> Settings and it starts working (command prompt shown)
回答4:
Go to terminal, preferences, settings. Check "run code in terminal" Restart VS.
来源:https://stackoverflow.com/questions/50913373/vs-code-terminal-not-allowing-typing