Skip to content

Commit 4f18574

Browse files
committed
DOCSP-44687 export to playground with Copilot
1 parent 72fb0e6 commit 4f18574

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

source/playgrounds.txt

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ Create a New Playground
7878
~~~~~~~~~~~~~~~~~~~~~~~
7979

8080
You can create a new playground from the :guilabel:`Playgrounds`
81-
panel, the |vsce| *Overview* page, or the |vscode| Command Pallette.
81+
panel, the |vsce| *Overview* page, the |vscode| Command Pallette, or
82+
your project file.
8283

8384
.. tabs::
8485

@@ -121,6 +122,27 @@ panel, the |vsce| *Overview* page, or the |vscode| Command Pallette.
121122

122123
.. include:: /includes/steps/open-new-playground.rst
123124

125+
.. tab:: Your Project File
126+
:tabid: project-file
127+
128+
1. Open a project file.
129+
130+
In |vscode-short|, click on a file name in the file explorer to
131+
open the file.
132+
133+
$. Highlight the code you want to open in a playground.
134+
135+
Select any code in your file to export it to a playground
136+
137+
#. Right click to export your code to a playground
138+
139+
Right click on your selected code to open the options menu.
140+
Click on :guilabel:`MongoDB Copilot Participant` >
141+
:guilabel:`Export Code to Playground`.
142+
143+
Once you click :guilabel:`Export Code to Playground`, VSCode
144+
opens a new playground with your selected code.
145+
124146
Open a Saved Playground
125147
~~~~~~~~~~~~~~~~~~~~~~~
126148

0 commit comments

Comments
 (0)