Fix: VS Code Terminal Not Working

VS Code Terminal Not Working


Visual Studio Code has an integrated terminal inside it, through which you can run the code, open up folders, create new files, and a lot of other amazing things. But sometimes this may put you in some trouble by not working. Today we will see, How to Fix VS Code Terminal Not Working?

We are gonna see the different problems which occur commonly with terminal and get solution of each of them. So let's get started!

VS Code Terminal Blank Screen

Here are the various methods you can try to solve this issue:

Hitting Return

Sometimes just hitting a return key can show up the terminal. Follow these steps:

FIX VS Code Terminal Not Working - Hitting Return

  1. Use Ctrl+Shift+` to open up a new terminal.
  2. Click inside it.
  3. Hit Return/Enter key.
If this method didn't work then try out another one!

Shut Down/Restart

Sometimes, only shutting down and restarting your computer again can solve the problem. For this, follow these steps:
  1. Click  on the Windows Icon in the bottom left corner.
  2. Then, click on power button icon.
  3. Here, select shut down (if any program or process is running, then kindly stop it before shutting down).
  4. After this, restart your computer.

If this worked then it's great, else you can try out the next method!

Changing Default Command Line Shell

Changing the shell and switching back to the previous one again can also solve this problem. Follow the steps to do this:

FIX VS Code Terminal Not Working - Changing Default Command Line Shell

  1. Use Ctrl+Shift+` to open up a new terminal.
  2. Then, click on the arrow on the side of a plus (+).
  3. Here, choose Select Default Profile.
  4. Then, select any other type of command line shell.
  5. Then, restart vs code and try working on terminal.
If it don't works, then you can check out the next method!

Re-installing VS Code

In case all the steps mentioned above don't work, only then I would recommend you to Reinstall vs code on your device.

Adding New Command Line Shell

If switching back to the same shell didn't worked, then you can try out adding a new command line shell and working on it. Follow these steps to do this:
  1. Use Ctrl+Shift+` to open up a new terminal.
  2. Then, click on the plus (+) icon at the top right corner of terminal.
  3. Here, choose any other type of command shell (choose one that you know to use).
  4. Then, you can try working on it.
If it's still not working, then you can try out another method!

Turning Off Compatibility Mode

If the Compatibility mode for Visual Studio Code is own then this might interupt the working of terminal. Follow these steps to do this:

FIX VS Code Terminal Not Working - Turning Off Compatibility Mode

  1. Click on the shortcut icon of Visual Studio Code.
  2. Here, click on Properties.
  3. Then, open up the tab titled Compatibiliy.
  4. You will see an option under Compatibility Mode, labeled as, 'Run this program in compatibility mode for', un-select this option

So these were the various methods by which you can solve the visual studio code's terminal showing black screen problem.

Integrated Terminal Not Opening (External Opening Instead)

If you are facing this problem, that your integrated terminal is not opening rather an external terminal is opening whenever you try opening new terminal. To fix this issue, follow these steps:

FIX VS Code Terminal Not Working - Integrated Terminal Not Opening (External Opening Instead)

  1. Open up Visual Studio Code.
  2. Click on the settings icon (gear icon) on the bottom left side of window.
  3. Then, click on 'Settings'.
  4. Inside settings, click on the search bar (at the top), and type: terminal conpty, and hit enter.
  5. Then, disable the conpty option.
After this, you can try opening up the terminal, now it must open up the integrated terminal. So, this was how you can solve the integrated terminal not opening problem.

Terminal Not Taking Input

Whenever you try typing in something inside the terminal, it isn't allowing you to do so. In this case you can try out running vs code as an administartor, for this follow these steps:

FIX VS Code Terminal Not Working - Terminal Not Taking Input

  1. First of all, close vs code
  2. Now, right click on it and choose 'Run as administrator'.
  3. Then, open up the terminal and try typing/pasting.
If this method didn't worked for you, for more solutions, you can check our complete article on this topic: Fix: VS Code Terminal Not Allowing Typing/Pasting

Small Help!

Big Contribution!


Conclusion

So, these were the various most common problems related to VS Code terminal and these were their solutions. Hope your vs code terminal not working problem has solved after this. In case of any query, you can write it down in the comments section below. Have a nice day!

Post a Comment

Please don't add any spam link in the comment box!

Previous Post Next Post