Vscode-live-server: Multi-root Workspace support

Created on 16 Nov 2017  路  6Comments  路  Source: ritwickdey/vscode-live-server

When running multi-root workspaces with 2 or more folders, launching Live Server would only display files from the 1st folder. How can we access the other folder directory to view a file?

closed enhancement feature requested help wanted

Most helpful comment

Quick workaround: Go to workspace settings and quickly reorder the folders using Alt-[Up/Down] to move the lines. This way you can quickly select another of your worspace folders to be the active one for Live Server.

PS I'm a newbie in Visual Studio Code so feel free to suggest an even quicker way to do this. I.e., a macro to move the current folder to be the first folder?

All 6 comments

As of now, Multi root is not supported.

[May be I've to work more for enabling multi root feature - BUT I AM TOTALLY BUSY DUE TO MY EXAM]

Quick workaround: Go to workspace settings and quickly reorder the folders using Alt-[Up/Down] to move the lines. This way you can quickly select another of your worspace folders to be the active one for Live Server.

PS I'm a newbie in Visual Studio Code so feel free to suggest an even quicker way to do this. I.e., a macro to move the current folder to be the first folder?

I realized what the problem was. Changed the order and now everything works :) Thanks!

This feature is added in LiveServer 5.0.0. Please update the extension. Sorry for late

It's still doesn't work in multi root project bro ... my version is 5.1.1

I am using 5.5.0 and it still not working

Was this page helpful?
0 / 5 - 0 ratings