0

I recently started programming in C++ in VS Code. I am not able to find the run option to run my code, neither in the menu that shows on right-click, not the Code Runner Run button on the top left.

But if I make a python file (.py) surprisingly I am able to locate both of these in their respective places.

No code runner button:

No code runner button

No run code option:

No run code option

halfer
  • 19,824
  • 17
  • 99
  • 186

2 Answers2

0

I'd suggest you to try Ctrl + Shift + D, since this works for me for bringing up Run view.

Also, if that doesn't work, I would like to suggest refering onto this page

Dharman
  • 30,962
  • 25
  • 85
  • 135
0

Try to open the folder and not only the file. File > Open Folder > Select the folder of your c++ project

You need also the compiler installed on your OS

Then you need to compile the file before run it. (C++ is a compiled programming language, it is not like Javascript)

dandan
  • 123
  • 1
  • 6
  • Yes, I have already set up that much. I can run my code via terminal by commands, however, I am not able to find a simple run option in VS Code itself. – Akash Rajoria May 11 '21 at 09:09