web
You’re offline. This is a read only version of the page.
close
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.

I have the same question (0)
  • LewisH95 Profile Picture
    65 on at

    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
  • Suggested answer
    THE Italian Profile Picture
    on at

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans