vscode install the plug-in real-time preview live server

live server

 

 

 Then the corresponding html right choice Open with Live Server Open on the line

 

 

 To modify the port:

1.ctrl + shift + p, select search settings in the following figure:

 

 

 

 2. Just open an editor, enter

"LiveServer.settings.port": "9000" this port number had changed

 

 

 

Guess you like

Origin www.cnblogs.com/huanghuali/p/12609413.html