Go to 'Extensions' , then install 'Live Server'

 



 Then go to View => Command Palette

 


 

 In the search box type 'Live Server', then select 'Open with Live Server'.

Then the permission will be asked. Press 'Allow'. Then the preview browser will be opened up in the browser.