Hi I was just wondering if you were able to solve this issue? I am experiences the same error.
Guys hello, i have the same problem but i could not solve it.
When i press Open with live server below message appears «Open a folder or workspace… (File -> Open Folder)», I opened any html file there many times but nothing about live server works ,guys how can i solve this?please any help
Kind Regards
AlaaSarhan9, Manghyi, OdaiSy, murlidharpathakprogrammer, musatoktas, kevinramadhan29, Jayasimha099, hichamsyc11, Harpreetkaur125, Sahinujjaman-Rahaman, and 37 more reacted with eyes emoji
hi
Want to known how to open more than one html file using live server in visual studio code
And when i try open more than one file with live server it is opening that files on same port, but when try to close live server for one file it is closing for all files opened on that port
So please tell me how to use live server for multiple files in visual studio code
I’m facing the same issue can anybody help me please!
«Open a folder or workspace… (File -> Open Folder)»
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
Geek2452, Yashr29-max, rafaellang1, souza-jefte, HackerPractice, aman-git13, Rahim47, Axist8, Silferion, Gopipatwa, and 21 more reacted with laugh emoji
AlaaSarhan9, giddygarcia, rafaellang1, musatoktas, ocholuo, kulu123-z, aman-git13, elzurdo, Rahim47, Axist8, and 27 more reacted with hooray emoji
kulu123-z, aman-git13, Rahim47, itxDeeni, Axist8, AwaisKazimi, Gopipatwa, loglost, Wang-Kevin900, sdobnaya, and 43 more reacted with heart emoji
kulu123-z, elzurdo, Rahim47, cemenyo, Axist8, loglost, Wang-Kevin900, sdobnaya, shubham-20120, Asrover, and 16 more reacted with rocket emoji
luisprz, jenwesi, JayP11, Aaryajith, Echolano, emman01-ship, Diego223, and hanselpinto reacted with eyes emoji
it really works……………
Will you please attach screenshot or write your issue which you are facing?
It will help me to understand related problem
…
Thanks, but It worked with the help of your previous answer.
Didn’t work for me 🙁
Try doing «ctrl O» and then open the file. This will solve it. You might have seen «Not Opened In Folder» notification
go to file>open folder> then open the folder where .html file is saved dont open the file just open the folder
jy615 reacted with laugh emoji
YeloFx reacted with hooray emoji
TamarDvorkin reacted with rocket emoji
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
sry but i cant understand please can you helped me to solved this prob…….
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
thankyou pihu01 its working ……….
thanks alot….
I’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release) [X ] Bug report <!-- Please search GitHub for a similar issue or PR before submitting --> [X ] Feature request [ X] Documentation issue or request [ ] Other: <!-- Please describe: -->Current behavior
With a HTML page open, I hit Ctrl+Shift+P and type Live Server: Open with Live Server but I get a error saying Open a folder or workspace… (File -> Open Folder)
Expected behavior
Should open a standalone HTML file.
Environment
Browser: - [ ] Chrome (desktop) version XX - [ ] Firefox version XX - [ ] Safari (desktop) version XX - [X ] IE version 11 - [ ] Edge version XX For Tooling issues: - Live Server: Latest - Platform: Windows - Visual Studio Code: 1.29.1Others
Open your folder in Vscode explorer
the same question occured,can anybody help me figure it out ? 3q
Vscode>File>Open folder >»choose the folder where you saved .html file.
then click on «alt+alt+o» to start live server.
i can make a short video if you cant understand me.
yep,i understand,i had try to find out folder,but it doesn’t work finally.I am so much appreciated if you could send me the video.
I’m facing the same issue can anybody help me please!
«Open a folder or workspace… (File -> Open Folder)»
where are the solutions??
Hi, I am facing the same issue. I tried opening in the folder location, and the folder in VS code explorer, it didn’t work. Can anyone help me out? Thanks in advance.
What a pity btw,i don’t know how to solve out the problem either.i am so soory for that,i am considering to download another editor such as Hbuilder replacing of vscode and let it go as for liverserver
Best Regards,
Allen
…
—————— 原始邮件 ——————
发件人: »arvinmi»<notifications@github.com>;
发送时间: 2020年5月25日(星期一) 下午2:20
收件人: »ritwickdey/vscode-live-server»<vscode-live-server@noreply.github.com>;
抄送: »Allen»<53370387@qq.com>;»Comment»<comment@noreply.github.com>;
主题: Re: [ritwickdey/vscode-live-server] «Open a folder or workspace… (File -> Open Folder)» when «> Live Server: Open with Live Server» without a folder being open (#248)
Hi, I am facing the same issue. I tried opening in the folder location, and the folder in VS code explorer, it didn’t work. Can anyone help me out? Thanks in advance.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
I cant believe that worked 😀
i had try,but the error existed all the time.Do you have other solutions to aviod it?
Thank you so much~
Best Regards,
Allen
…
—————— 原始邮件 ——————
发件人: «HackerPractice»<notifications@github.com>;
发送时间: 2020年5月31日(星期天) 晚上8:57
收件人: «ritwickdey/vscode-live-server»<vscode-live-server@noreply.github.com>;
抄送: «Allen»<53370387@qq.com>; «Comment»<comment@noreply.github.com>;
主题: Re: [ritwickdey/vscode-live-server] "Open a folder or workspace… (File -> Open Folder)" when "> Live Server: Open with Live Server" without a folder being open (#248)
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
I cant believe that worked 😀
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
thank you maam
it really works
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
thank you, it worked for me
thanks for your reminding,i am trying to do so but it doesn’t work at present,could you show me the pictures what you operate on?
thank you so much for your support.
Best Regards,
Allen
…
—————— 原始邮件 ——————
发件人: «shahnaeem»<notifications@github.com>;
发送时间: 2020年6月22日(星期一) 凌晨5:28
收件人: «ritwickdey/vscode-live-server»<vscode-live-server@noreply.github.com>;
抄送: «Allen»<53370387@qq.com>; «Comment»<comment@noreply.github.com>;
主题: Re: [ritwickdey/vscode-live-server] "Open a folder or workspace… (File -> Open Folder)" when "> Live Server: Open with Live Server" without a folder being open (#248)
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
thank you, it worked for me
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
many thanks for the solution after 5 hours research….
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
it worked! Thank you!
Wow! I got the solution,
whenever you try to open the file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exists) in visual studio code, and then you can open live server by right click.
thank you
It’s working thanks learner
well we should thanks to ‘Pihu01’ up there
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
It worked for me …thanks for posting
right click on UNTITLED (WORKSPACE) and select ADD FOLDER TO WORKSPACE
select the folder you wan to add and continue working.


you can also click on FILE and select ADD FOLDER TO WORKSPACE. then select the complete folder of your code.
Guyz…. its not working because you might have selected «open file» option to put your file in VS Code, instead try to select «open folder» option in VS Code and it will surely gonna work. 👍 💯 💯 💯 💯 💯 💯 💯 💯 💯 💯
For Apple users,
hi guys what worked for me it was, when i went to open the folder the system just took me right to the folder, i clicked out of there like were the folder is, then i went to the folder then the file, if the bottom line turns blue in vscode that means it worked. let me know please.
you can also click on FILE and select ADD FOLDER TO WORKSPACE. then select the complete folder of your code.
Exactly make sure all the folders you have your files in are saved in a «WORKSPACE FOLDER». Put all your files in the Workspace Folder, then open the files from your workspace folder by using VSCODE to open it.
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
thanx that really helped
I got a solution
open vs code
then click on files then click on open folder, select the folder where your html file is.
then click on right click open with server.
it will work
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
Thank you! I did it!
go to File , Then to Open Folder and then go to Select . And now you can select your file .
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
Thanks! You are the best! 🙂
It worked for me. Thanks.
thank you Pihu01
it works
eyobai
Thank you- it works!
vá para arquivo>abrir pasta> depois abra a pasta onde o arquivo .html está salvo não abra o arquivo apenas abra a pasta
Consegui resolver com sua ajuda. grato!!!!!!!!!!!
solution:
on VSC go to upper left: file>open folder
select the folder which contains the .html files
after that, the folder opens in VSC and you will be able to run the live server on each html file.
Wow! I got the solution, whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click. thank you
6666
«Open a folder or workspace… (File -> Open Folder)» when «> Live Server: Open with Live Server» without a folder being open» This issue happens to me too when I just create file in VS and just run it, so I just create some folder and put the file their and it works.
Wow! I got the solution, whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click. thank you
Thanks!
Hello everyone , i had a same issue. But i open html file in browser and open html file in vscode and it works , opening another folder or workspace is not a good way cause , machine spends power for unnecessary things when you unnecessary folder or workspace
Wow! I got the solution, whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click. thank you
Thank you. It worked
Skip to content
При запуске локального сервера в среде VS code с использованием плагина Live Server появляется ошибка
Open a folder or workspace… (File -> Open Folder)

Для устранения ошибки в VS code переходим в проводник и жмем Открыть папку, далее указываем путь до файла index.html, жмем Ок.

Далее появится информационное окно
Вы доверяете авторам файлов в этой папке?
Code предоставляет функции, которые могут автоматически выполнять файлы в этой папке.If you don’t trust the authors of these files, we recommend to continue in restricted mode as the files may be malicious. See our docs to learn more.
С:site Доверять авторам всех файлов в родительской папке «с:»
Ставим галочку и жмем Да, я доверяю авторам

Далее автоматически откроется проект

и переходим в Open with Live Server

откроется браузер по умолчанию (как изменить браузер по умолчанию см. здесь) 127.0.0.1:5500/index.html


1633
wondering if you could assist. Really challenging in determining a solution to this from my research.
Ive downloaded Visual Studio code two weeks ago and has come across an error once I try to debug a file. The file appears to open but once I run the debugger it shows accordingly:
‘${workspaceFolder}’ can not be resolved. Please open a folder.
Can’t seem to find or replicate a similar solution. I’ve also tried to reinstall Visual Studio code (no easy feat). I’m trying to at least understand the problem and its source.
The file is a .js file that I’ve been working on, running a simple function. It is not meant to operate in tandem with a larger workspace/program.
![]()
Lex Li
58.7k9 gold badges116 silver badges142 bronze badges
asked Apr 15, 2020 at 20:28
1
In VScode go to file —> Add folder to workspace and select the folder where the program files are located.
answered Jan 30, 2021 at 21:40
MeysamMeysam
4094 silver badges14 bronze badges
2
If you are using the latest Visual Studio 1.44, make sure to upgrade to 1.44.2.
The issue microsoft/vscode issue 94725 has been resolved.
It featured the same error message:

After some investigation the problem is the following for the workspace configuration our debug extensions appends the following attribute
__workspaceFolder:'${workspaceFolder}'And the configuration resolver properly tries to resolve this and complains because the scope of the folder is not specified.
In a multi root workspace scope has to be specified, otherwise the resolver does not know against which folder to resolve the variables.Proposed fix: the node extension which adds this attribute should scope it if it sees that we are in a multi root folder.
So instead of${workspaceFolder}use${FOLDER_NAME:workspaceFolder}.
This is fixed in commit ae97613.
answered Apr 18, 2020 at 6:08
![]()
VonCVonC
1.2m506 gold badges4243 silver badges5061 bronze badges
9
Replace ${workspaceFolder} with ${FOLDER_NAME:workspaceFolder} in your *.code-workspace file. (from [here][1])
By the way, same goes to ${workspaceRoot}, you can replace it with ${FOLDER_NAME:workspaceRoot}.
Any more folder variables ca be fixed with this FOLDER_NAME: prefix? My workspaces did not use them so far.
Worked for me in Version: 1.44.2.
answered Apr 30, 2020 at 18:40
moudrickmoudrick
2,0381 gold badge21 silver badges32 bronze badges
I know this question is very old already and the answers may have been correct but none worked for me on vscode v1.57.1 at the time of this comment on 30.06.2021
I had to replace ${workspaceFolder} with ${workspaceFolder:my-folder-name} in my *.code-workspace file
Ref: Variables scoped per workspace folder
answered Jun 30, 2021 at 13:11
![]()
omostanomostan
7807 silver badges9 bronze badges
I recently had this problem and so did I read the answers above but being a beginner I was unable to solve it .In my answer I don’t have exactly what you should do but I will show what worked for me.
- Go to the explorer and you will see there is no folder added.
- Browse for .vscode folder and select it.
- Issue solved {this atleast worked for me.It**(.vscode)** had .json extension file in it}.
![]()
DCCoder
1,5574 gold badges14 silver badges29 bronze badges
answered Jan 12, 2021 at 3:45
I was having the same issue, but I solved it this way:
1- open VS Code as administrator
2- open the sheet
3- debugging with no problem 🙂
answered Apr 17, 2021 at 14:29
У меня была такая же проблема в Windows, когда я ранее создавал разные проекты в неопределенной рабочей области (рабочее пространство VSCode по умолчанию).
Когда я создаю рабочее пространство и помещаю свои корневые папки в это одно рабочее пространство, он предупреждает, что не может разрешить папку рабочего пространства.
Вам необходимо отредактировать файл конфигурации рабочего пространства, изменить путь к папкам, а затем перезапустить VSCode.
На палитре команд VSCode введите: конфигурация рабочей области — затем выберите «Открыть файл конфигурации рабочей области».
У вас должно получиться что-то вроде этого:
{
"folders": [
{
"path": "OneProject"
},
{
"path": "AnotherProject"
}
],
"settings": {}
}
Вам нужно что-то вроде этого:
{
"folders": [
{
"path": "C:/Somewhere/OneProject"
},
{
"path": "C:/Somewhere/AnotherProject"
}
],
"settings": {}
}
Это известная проблема, здесь ее исправили — https://github.com/Microsoft/vscode/issues/50866
В версии 1.24.1 он еще не доступен. Но перечисленное выше исправление должно устранить возникшую у вас проблему.
«Open a folder or workspace… (File -> Open Folder)» when «> Live Server: Open with Live Server» without a folder being open
I’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release) [X ] Bug report <!-- Please search GitHub for a similar issue or PR before submitting --> [X ] Feature request [ X] Documentation issue or request [ ] Other: <!-- Please describe: -->
Current behavior
With a HTML page open, I hit Ctrl+Shift+P and type Live Server: Open with Live Server but I get a error saying Open a folder or workspace… (File -> Open Folder)
Expected behavior
Should open a standalone HTML file.
Environment
Browser: - [ ] Chrome (desktop) version XX - [ ] Firefox version XX - [ ] Safari (desktop) version XX - [X ] IE version 11 - [ ] Edge version XX For Tooling issues: - Live Server: Latest - Platform: Windows - Visual Studio Code: 1.29.1
Others
Hi I was just wondering if you were able to solve this issue? I am experiences the same error.
Guys hello, i have the same problem but i could not solve it.
When i press Open with live server below message appears «Open a folder or workspace… (File -> Open Folder)», I opened any html file there many times but nothing about live server works ,guys how can i solve this?please any help
Kind Regards
hi
Want to known how to open more than one html file using live server in visual studio code
And when i try open more than one file with live server it is opening that files on same port, but when try to close live server for one file it is closing for all files opened on that port
So please tell me how to use live server for multiple files in visual studio code
I’m facing the same issue can anybody help me please!
«Open a folder or workspace… (File -> Open Folder)»
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
it really works……………
Will you please attach screenshot or write your issue which you are facing?
It will help me to understand related problem
…
Thanks, but It worked with the help of your previous answer.
Didn’t work for me 🙁
Try doing «ctrl O» and then open the file. This will solve it. You might have seen «Not Opened In Folder» notification
go to file>open folder> then open the folder where .html file is saved dont open the file just open the folder
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
sry but i cant understand please can you helped me to solved this prob…….
Wow! I got the solution,
whenever you try to open file without opening folder in visual studio code, then the issue occurs, to avoid this first open the folder(where code file already exist) in visual studio code, and then you can open live server by right click.
thank you
thankyou pihu01 its working ……….
thanks alot….
I’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release) [X ] Bug report <!-- Please search GitHub for a similar issue or PR before submitting --> [X ] Feature request [ X] Documentation issue or request [ ] Other: <!-- Please describe: -->Current behavior
With a HTML page open, I hit Ctrl+Shift+P and type Live Server: Open with Live Server but I get a error saying Open a folder or workspace… (File -> Open Folder)
Expected behavior
Should open a standalone HTML file.
Environment
Browser: - [ ] Chrome (desktop) version XX - [ ] Firefox version XX - [ ] Safari (desktop) version XX - [X ] IE version 11 - [ ] Edge version XX For Tooling issues: - Live Server: Latest - Platform: Windows - Visual Studio Code: 1.29.1Others
Open your folder in Vscode explorer
the same question occured,can anybody help me figure it out ? 3q
Vscode>File>Open folder >»choose the folder where you saved .html file.
then click on «alt+alt+o» to start live server.
i can make a short video if you cant understand me.
yep,i understand,i had try to find out folder,but it doesn’t work finally.I am so much appreciated if you could send me the video.
Интересно, если бы вы могли помочь. Действительно сложно определить решение этой проблемы из моего исследования.
Я скачал код Visual Studio две недели назад и столкнулся с ошибкой, когда я пытаюсь отладить файл. Файл открывается, но после запуска отладчика он показывает соответственно:
«$ {workspaceFolder}» не может быть разрешен. Пожалуйста, откройте папку.
Не могу найти или воспроизвести подобное решение. Я также пытался переустановить код Visual Studio (нелегкий подвиг). Я пытаюсь хотя бы понять проблему и ее источник.
Это файл .js, над которым я работал, с простой функцией. Он не предназначен для работы в тандеме с большим рабочим пространством / программой.
2 ответа
Лучший ответ
Если вы используете последнюю версию Visual Studio 1.44, обязательно обновите ее до 1.44.2.
Проблема microsoft/vscode проблема 94725 была решена.
Это показало то же самое сообщение об ошибке:

После некоторого исследования проблема заключается в следующем для конфигурации рабочей области, наши расширения отладки добавляет следующий атрибут
__workspaceFolder:'${workspaceFolder}'И преобразователь конфигурации должным образом пытается решить эту проблему и жалуется, потому что область действия папки не указана.
В многокорневой рабочей области должна быть указана область действия, в противном случае распознаватель не знает, в какой папке разрешать переменные.Предлагаемое исправление: расширение узла, которое добавляет этот атрибут, должно охватывать его, если видит, что мы находимся в многокорневой папке.
Поэтому вместо${workspaceFolder}используйте${FOLDER_NAME:workspaceFolder}.
Это исправлено в commit ae97613.
1
VonC
18 Апр 2020 в 06:08
Замените ${workspaceFolder} на ${FOLDER_NAME:workspaceFolder} в вашем *.code-workspace файле. (из [здесь] [1])
Кстати, то же самое относится и к ${workspaceRoot}, вы можете заменить его на ${FOLDER_NAME:workspaceRoot}.
Можно ли исправить еще какие-нибудь переменные папки с этим префиксом FOLDER_NAME:? Мои рабочие пространства до сих пор не использовали их.
Работал на меня в Version: 1.44.2.
0
moudrick
30 Апр 2020 в 18:40
I’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ X] Bug report <!-- Please search GitHub for a similar issue or PR before submitting -->
[ ] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->
Current behavior
I am new to Visual Studio Code and to writing code. VSC is working perfectly. Sadly, after installing and activating the Live Server extension I get an error when trying to start it in a browser. The error message is: Open a folder or workspace… (File -> Open Folder)
All I am doing is working on HTML and CSS. If I open the HTML page in Chrome, I can update it by using cmd tab and cmd r.
I uninstalled the extension and updated the version of VSC. I then reinstalled the LS extension and get exactly the same result.
Expected behavior
The VSC HTML page I’m working on would open in Chrome and instantly update as I make changes.
Environment
Browser:
- [X ] Chrome (desktop) Version 69.0.3497.81 (Official Build) (64-bit)
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX
For Tooling issues:
- Live Server: 5.1.1
- Platform: Mac OS High Sierra version: 10.13.6
- Visual Studio Code: Version 1.27.1 (1.27.1)
Others
I tried installing another extension: Live Server Preview 0.1.2 and couldn’t get this to work either. I have also searched YouTube and GIT for a solution but had no luck.
The extension won’t work if you only have a file open. Use ‘File -> Open Folder’ in VSCode to open the directory your files are in. Then open the respective HTML file. You can start Live Server now and it should work.
You are quite correct. IT WORKS!! Thank you for providing this simple yet effective solution.
I was having this issue, then followed the above. I got the ‘Go Live’ button to show up, but now when press it it shows this error:
«Something is went wrong! Please check into Developer Console or report on GitHub.»

However when I check to find an error there is none to be found?
Hello people,
unfortunately my browser does not open automatically. I have already selected «Chrome» in the settings, yet without success. Is there a mac os setting that I need to make? It works via the manual path in the browser.
Thanks in front,
many greetings
Sascha
Пока что в VS Code можно открыть только один workspace (рабочее пространство) в котором (до недавнего времени) можно было открыть только один каталог с проектом
Теперь стало доступно открыть сразу несколько каталогов
Например, я пишу свой шаблон для проектов, в нем есть api-сервер, есть client у них обоих есть еще и ядра, а еще есть документация ко всему этому в итоге у меня уже 5 репозиториев
Все это мне нужно одновременно открыть и работать, вот для этого и сделан multi-root folders
В итоге я могу открыть сразу все 5 репозиториев и работать с ними, делать коммиты и отправлять их в GIT как будто они все открыты отдельно
Иначе мне пришлось бы открывать несколько окон vs code и переключаться между ними
P.S. Сейчас вот многие ждут когда сделают возможность открывать несколько рабочих пространств (workspaces) чтобы каждый каталог открыть в своем пространстве, это нужно чтобы код не конфликтовал между собой
Для примера опять же возьмем мой проект (он написан на php), есть ядро в котором есть разный код и библиотеки, это ядро подключается в api-сервер в качестве библиотеки в итоге в одном пространстве vs code видит сразу несколько одинаковых файлов, один и те же файлы находятся в двух каталогах (в ядре и в api-сервере), чтобы это жестко разделить и нужен multiple workspaces