Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

How to add all the workspace created in VSCode application into a single main workspace/folder?

(0) ShareShare
ReportReport
Posted on by 607

Hi All,

I am using the cloud version of Dynamics 365 Business Central. I have requirement that all the workspace(s) i create for a particular sandbox, i want that to be added in particular main folder automatically instead of copy/pasting that workspace into that main folder. So that when i check in that main folder to source control, client can just download that main folder from source control and publish that into the Production sandbox.

Its like in AX, there is a concept of package, whenever we create a project, we attach that project to that specific package. So in short , a package contains n number of projects, which client just move that package to their respective production environment. So this way it becomes easy, to move all the projects at once through instead of moving the projects individually.

I hope my requirement is clear. So Is their any way or detail steps through which i can achive this?

Thanks in Advance.

  • Suggested answer
    THE Italian Profile Picture
    on at
    RE: How to add all the workspace created in VSCode application into a single main workspace/folder?

    Not quite clear what you are asking for but I think that multi-root workspace could be your baby. 

    Just have a look at these references here

    https://www.waldo.be/2020/02/21/multi-root-workspaces-in-vscode-for-al-development/

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-multiroot-workspaces

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-work-workspace-projects-references

    Get your hands dirty and try to see if this is what suits you best. 

    Another suggestion that I would love to provide you, if you have any further AL related inquiries, is to use your twitter account, formulate your question and use the hashtag #bcalhelp

  • LewisH95 Profile Picture
    65 on at
    RE: How to add all the workspace created in VSCode application into a single main workspace/folder?

    Add Folder to Workspace

    The File > Add Folder to Workspace command brings up an Open Folder dialog to select the new folder.

    pastedimage1583934712145v1.png

    Once a root folder is added, the Explorer will show the new folder as a root in the File Explorer. You can right click on any of the root folders and use the context menu to add or remove folders.

    pastedimage1583934712147v2.png

    The File Explorer should work and behave as before. You can move files between root folders and use any of the typical file operation actions provided in the context menu and the Explorer view.

    Settings like files.exclude are supported for each root folder if configured, and across all folders, if configured as a global user setting.

    Drag and drop

    You can use drag and drop to add folders to a workspace. Drag a folder to the File Explorer to add it to the current workspace. You can even select and drag multiple folders.

    Note: Dropping a single folder into the editor region of VS Code will still open the folder in single folder mode. If you drag and drop multiple folders into the editor region, a new multi-root workspace will be created.

    You can also use drag and drop to reorder folders in the workspace.

    Multiple selection native file open dialogs

    Opening multiple folders with your platform's native file open dialog will create a multi-root workspace.

    command line --add

    Add a folder or multiple folders to the last active VS Code instance for a multi-root workspace.

      code --add vscode vscode-docs

    I hope this helps!
    Admin
    Apps4rent | o365cloudexperts

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
YUN ZHU Profile Picture

YUN ZHU 374 Super User 2025 Season 1

#2
Mansi Soni Profile Picture

Mansi Soni 247

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 231 Most Valuable Professional

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans