VsCode uses the live Server plug-in to report Open a folder or workspace... (File -> Open Folder)

After installing the live Server plug-in, VsCode cannot open the code.html file after creating it, and reports the error shown in the figure below.

 This is because the file is not opened in the folder. We open the file in the folder,

 And run the live Server plug-in, it can start normally.

Guess you like

Origin blog.csdn.net/weixin_70443954/article/details/128416761
Recommended