Where to set value of liveServer.settings.port in live server extension of visual studio code
I got the answer I was editing the wrong settings.json there were two .json files.
Also, I put the below code:
{
"liveServer.settings.multiRootWorkspaceName": "",
"liveServer.settings.port": 0
}
But thanks Danny
I hope this helps: in the settings.json add the following line.
"liveServer.settings.port": 0,
A value 0 (zero) is used for a random port. Any other numbers is for a fixed port number.