microsoft / microsoft/vscode-livepreview

Launch as http://localhost instead of http://127.0.0.1?

Open
#631 13 comments 9 reactions 1 assignee View on GitHub

@andreamah is already working on this.

Since Apr 22, 2024.

feature-request
Dominant language
TypeScript
Stars
596
Forks
119
Avg merge
1d 4m
Merged PRs (30d)
5

Description

Recently switched to this extension instead of preview on live server, and like it overall. But there's one thing either missing - or I can't figure out how to configure it: launching in the preview/browser as http://localhost instead of http://127.0.0.1. This would allow better support for pulling in cross-origin resources like FontAwesome, which allows development on localhost but not on a specific IP address.

I'm thinking it's possible I just am missing a configuration option because this issue mentions localhost several times. Is there maybe a more general VS Code or workspace setting I can use to ensure that I'm launching on localhost instead of the specific IP?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.