ruwanmadhusanka
ruwanmadhusanka

Reputation: 989

Visual Studio Code terminal isn't working

Enter image description here

I have installed Visual Studio Code, but I can’t type anything in terminal. How can I correct this issue?

Upvotes: 20

Views: 67300

Answers (18)

Pawan
Pawan

Reputation: 6

Below Steps Worked for me:

  1. open Preferences > Settings (CTRL+,)

  2. search for terminal.integrated.defaultProfile.windows and set a default (for me Command Prompt)

Upvotes: 0

MambaForever
MambaForever

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.

Settings

Upvotes: -1

JTDotNet
JTDotNet

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.

Enter image description here

Upvotes: 0

İsa Aşcı
İsa Aşcı

Reputation: 1

I had the same error. I updated and it started to work.

Upvotes: 0

elezerk
elezerk

Reputation: 11

Install "System setup" of Visual Studio Code instead of "User setup".

Upvotes: 1

  1. Right-click on the Visual Studio Code icon on the desktop.
  2. Click on Properties.
  3. Click on Compatibility setting.
  4. In compatibility mode, uncheck the "Run this program in compatibility mode for..."
  5. Click on Apply.
  6. Refresh the desktop and open Visual Studio Code. Boom! It'll work now!

Upvotes: 0

prathyusha
prathyusha

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

Eystein Thanisch
Eystein Thanisch

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

Tarek.Eladly
Tarek.Eladly

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

Change it to the 32-bit version VSCode-win32-ia32-1.43.1.

Upvotes: 1

Nicole Douglas
Nicole Douglas

Reputation: 649

For me, it worked to close all my Visual Studio Code folders and reopen them.

Upvotes: 16

Manuj Chandra
Manuj Chandra

Reputation: 76

Setting the value terminal.integrated.inheritEnv to true (default) solved the problem for me on Pop!_OS Linux.

  • Go to settings (gear icon in the lower left corner)
  • Search for terminal.integrated.inheritEnv
  • Check it

Upvotes: 3

codingbruh
codingbruh

Reputation: 2273

How I resolved the issue:

  1. Open Settings

    Enter image description here

  2. Click on this icon in the top left of your window [to open the JSON version of settings]

    Enter image description here

  3. Remove everything (or find the suspicious setting and delete that line alone!)

    Enter image description here

Upvotes: 6

Lovish Garg
Lovish Garg

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

Oscar N
Oscar N

Reputation: 139

Well, I had the same issue and I reset all the changed settings:

  1. Click on the engine

  2. Settings

  3. Click on the right three-dot menu

  4. Click on show modified settings

  5. Then a list of setting will appear put the mouse in the left side of the setting name

  6. A little engine shows up. Press Reset setting

  7. Close and open the Visual Studio Code software

After this the terminal worked again.

Upvotes: 13

AnilPatil
AnilPatil

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

Andreas Forslöw
Andreas Forslöw

Reputation: 2738

In my case, Ctrl + Shift + P (opening command palette, as MasterYork42 answered) and selecting Terminal:Clear worked.

Upvotes: 2

MasterYork42
MasterYork42

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

Related Questions