Right-click anywhere in your code editor and select Run Code .
Visual Studio Code (VS Code) is one of the most popular code editors because of its flexibility. However, out of the box, it doesn’t always come with a "Play" button to run your scripts immediately. This is where the extension becomes essential. vs code runner download
Find the extension authored by Jun Han and click the blue Install button. Right-click anywhere in your code editor and select Run Code