Problem Description
as shown in the picture
reason
It was not configured for languages such as html in the configuration file
Solution
The author also said the method:
Copy the code for the corresponding language
"code-runner.executorMap": {
"javascript": "node",
"php": "C:\\php\\php.exe",
"python": "python",
"perl": "perl",
"ruby": "C:\\Ruby23-x64\\bin\\ruby.exe",
"go": "go run",
"html": "\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\"",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
}
Open the plug-in settings of run code and find this
Then paste the sentence the author said, for example, if you are html, that is this sentence:
"html": "\"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe\"",
Put it inside, as shown in the figure:
After saving, find a file and run
ok
Notice
Need to find the corresponding language code input
In addition, if you just want to see the running effect of the page, the run code is more troublesome, it is better to directly
But these two need to download plug-ins, live server is real-time browsing
You can also debug directly