用此方法確定一下你目前的程式語言是什麼
如果是 HTML
再改成你要的程式語言(C/C++)即可
Changing the language for the selected file#
In VS Code, we default the language support for a file based on its filename extension. However, at times you may want to change language modes, to do this click on the language indicator - which is located on the right hand of the Status Bar. This will bring up the Select Language Mode dropdown where you can select another language for the current file.
Language Selector
Tip: You can get the same dropdown by running the Change Language Mode command (Ctrl+K M).