I have the following line of code that I want to run in my VSCode application. I cannot find a Run button or option. I think it should be on the top right corner.
It also looks like VSCode is not recognizing my code either.

Check that you have the Code Runner extension enabled. The Extensions marketplace is accessible through the fifth button down on the toolbar.

If it is installed and enabled, you should see a Run button on the top-right of the tab bar.
Your code is not recognized because the file does not have a .js file extension. You can either change the extension so that it is recognized, or find the "Plain Text" indicator at the bottom-right in the status bar, and manually select "Javascript".

Note that for Python you no longer need the "Code Runner" extension. All you need is the "Python" extension by Microsoft. Regardless of which extension you have, the following steps seem to apply:
In the top-right of your screen, right-click the "split editor" button which appears as a little square icon that has a vertical line running down the middle of it: 
Then, choose Run or Debug.... Notice that mine is missing the check in front of it because it is not activated yet. You can also click the Reset Menu button instead. See the screenshot below.

When done, I now have the run button back, as shown below. Since I have a Python file open, if I hover over it, mine says "Run Python File".

Now that my run button is back, I can get back to following this tutorial here: https://code.visualstudio.com/docs/python/python-tutorial
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With