Via VS Code Plugin


Before the user can create a play from VS Code, following prerequisites should meet.

  1. VS Code should be connected to the Playground. If not done, follow these steps on VS-Code Extension page.
  2. Salesforce project is already setup in VS Code and the VS Code root directory points to the project. Please note that when the user pushes the code, everything from the project folder is pushed to the Playground. So its ideal to make sure that only selective components are needed.

Pushing Changes

Once everything is set up, Uploading project to Playground is a single click task. Just go to Playground: Push Changes button in the bottom status bar & it will pick your whole force-app/src structure & upload it, thus making it a Playground directory.

This button is clever & it overrides/updates the existing play next time if the same directory sent again with any changes.