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.