Reputation: 31
I use Brave browser as my default browser but don't want to use it in developing purpose while I am in VS Code and therefore I use Live server extension and I changed the extension's default browser as chrome but it didn't worked while I am in remote WSL Ubuntu environment.
Need some assist in it, that how can I use chrome as Live server default browser while I am working in remote WSL Ubuntu environment without changing my Windows default browser settings.
I use Google chrome Dev not actual Chrome.
Upvotes: 0
Views: 735
Reputation: 1
That is because the extension runs in your WSL environment, and therefore does not use the Windows file paths.
Luckily, the C:\
drive is mounted in your Ubuntu WSL at /mnt/c
.
The executable path for Firefox for example, should therefore change from C:\Program Files\Mozilla Firefox\firefox.exe --private-window
to /mnt/c/Program Files/Mozilla Firefox/firefox.exe --private-window
.
Upvotes: 0
Reputation: 11
Start live share, then copy the live server link at the top of brave (should be like http://127.0.0.1:5500/your-file.html) and then paste in chrome.
Upvotes: 1