Hello everyone, welcome back to another quick tutorial. In this short tutorial, you will learn how to fix a terminal not working in Visual studio code.
If you are a coder then you must have used visual studio code editor. But, if you are just starting coding in vs code then you may have faced or will face a common error in which your code does not run in the terminal.
So, the question rises what is the reason behind it and how to solve it.
This problem can be simply solved by turning on a feature in vs code settings. Here is how to turn on this feature in Visual studio code settings:
Fix: Terminal Not Working in Visual Studio Code
To fix the terminal not working in visual studio code, follow the steps given below in this tutorial:
Step 1: Open the visual studio code editor on your laptop. Then, create a file and start writing your code.
Step 2: Once the code is written successfully, click on the settings icon present in the bottom left corner of the screen. This will open a pop-menu for you.
Step 3: Click on settings.
Step 4: Now, go to the search bar and search the terminal. This will open all the settings related to the terminal.
Step 5: Scroll down and search for an option called code runner. Once you will find this option, enable it.
Step 6: Now, close the settings and run your code. You will find your code will run successfully.