skip to Main Content

I know that there is an extension to this, but this extension open it in VSC, and when i try to open this on the web it isnt LivePreviwed. What should i do?
Thanks

I tried to install the extension but it isnt live previewing

2

Answers


  1. You can actually edit the preview target in the Live Preview extension settings.

    1. Start the server.
    2. Press CTRL + Shift + P.
    3. Then write Live Preview: Show Preview (External Browser), and choose it.

    live preview settings

    Or you can try a different extension like the Live Server extension.

    Launch a local development server with a live reload feature for static & dynamic pages.

    live server preview

    Login or Signup to reply.
  2. Well, I like to have it through the node live-preview package instead of an extension.
    You may achieve it in the following way::

    1. 1st install Node.
    2. Check you’ve installed node by running node -v in the terminal.
    3. Then install the package by npm install live-server -g
    4. Then run the live-server by running live-server command in your terminal.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search