Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code can't open the terminal

For some reason vscode stopped opening the integrated terminal and now I get an error every time I try to open the terminal. I have already tried reinstalling Git but nothing so far, any idea, here I leave a picture of the config and the error:

enter image description here

I even tried to change the bash terminal for powershell but still nothing, have no idea what could be happening.

like image 794
Miguel Frias Avatar asked Jan 23 '19 16:01

Miguel Frias


People also ask

Why terminal is not opening in VS Code?

Changing Default Command Line Shell Here, choose Select Default Profile. Then, select any other type of command line shell. Then, restart vs code and try working on terminal.

How do I open a terminal in VS Code?

To open the terminal: Use the Ctrl+` keyboard shortcut with the backtick character. Use the View > Terminal menu command. From the Command Palette (Ctrl+Shift+P), use the View: Toggle Terminal command.

How do I show terminal in Visual Studio?

The Visual Studio terminal is built on top of Windows Terminal. To open the terminal in Visual Studio, select View > Terminal.


2 Answers

I found the solution for this issue, i just delete the settings.json, apparently the file was corrupt some how, after that vs code was working just fine, the only thing is that i need to configure my workspace again, but not big deal.

like image 168
Miguel Frias Avatar answered Oct 19 '22 19:10

Miguel Frias


For me it was this line in settings.json on Linux (CentOS 7):

"terminal.integrated.shell.linux": "konsole",

After removing/commenting it, the problem goes away.

like image 1
Son Goku ssj4 Avatar answered Oct 19 '22 20:10

Son Goku ssj4