Reputation: 989
I have installed Visual Studio Code, but I can’t type anything in terminal. How can I correct this issue?
Upvotes: 20
Views: 67300
Reputation: 6
Below Steps Worked for me:
open Preferences > Settings (CTRL+,)
search for terminal.integrated.defaultProfile.windows and set a default (for me Command Prompt)
Upvotes: 0
Reputation: 367
For me, the issue was when I was prompted by VS Code if I wanted it to "auto fetch" every now and then and I said yes.
This added the highlighted setting in my terminal which caused the issues. Once I deleted this, it worked like normal again.
Upvotes: -1
Reputation: 109
I had this problem too using PowerShell as the shell. In my case, I reverted the PowerShell extension to a previous version (causing a terminal load failure), and then reinstalled to the latest version.
Upvotes: 0
Reputation: 11
Install "System setup" of Visual Studio Code instead of "User setup".
Upvotes: 1
Reputation: 1
Upvotes: 0
Reputation: 1
Add the below line in the .vscode user settings folder. It worked for me.
"terminal.integrated.shell.windows": "C:\\Windows\\Sysnative\\cmd.exe"
Upvotes: 0
Reputation: 57
This may well not suffice in every case but, for me, the old fashioned approach of restarting my machine fixed this problem!
Upvotes: 0
Reputation: 759
Click on the gear on the left bottom of Visual Studio Code, click on Settings. On search settings, type "terminal" and see if there is an assigned value or not. If not, do something like "terminal.external.windowsExec": "C:\\WINDOWS\\System32\\cmd.exe"
or whatever for Mac or Linux.
Upvotes: 0
Reputation: 649
For me, it worked to close all my Visual Studio Code folders and reopen them.
Upvotes: 16
Reputation: 76
Setting the value terminal.integrated.inheritEnv to true (default) solved the problem for me on Pop!_OS Linux.
Upvotes: 3
Reputation: 2273
How I resolved the issue:
Open Settings
Click on this icon in the top left of your window [to open the JSON version of settings]
Remove everything (or find the suspicious setting and delete that line alone!)
Upvotes: 6
Reputation: 89
I had the same issue. I in actuality had troubleshooted my Visual Studio Code installation.
First press Windows + S, search for "Vscode", right-click, and choose Open File Location.
Then you will see a file with the Visual Studio Code icon. Right click on it, choose properties and on the top-side choose Compatibility. Then make sure that Run Program in Compatibility is turned off.
Upvotes: 3
Reputation: 139
Well, I had the same issue and I reset all the changed settings:
Click on the engine
Settings
Click on the right three-dot menu
Click on show modified settings
Then a list of setting will appear put the mouse in the left side of the setting name
A little engine shows up. Press Reset setting
Close and open the Visual Studio Code software
After this the terminal worked again.
Upvotes: 13
Reputation: 51
I was having the same issue with terminal. That terminal does not work in Visual Studio Code. I fixed this issue by using the 32-bit, version VSCode-win32-ia32-1.43.1.
So use the 32-bit application VSCode-win32-ia32-1.43.1.
Upvotes: 0
Reputation: 2738
In my case, Ctrl + Shift + P (opening command palette, as MasterYork42 answered) and selecting Terminal:Clear
worked.
Upvotes: 2
Reputation: 228
Hit the gear button in the bottom left and go to the command palette. Type in "terminal" and see if opening a new terminal helps. If not, there are a few other options that come up in the dropdown that you can try that might fix the problem.
Upvotes: 0