> This page location: /docs.md > /docs/tools-and-connectors.md > /docs/mongodb-vscode.md > /docs/mongodb-vscode/playgrounds.md

> For the complete MongoDB documentation index, see www.mongodb.com/docs/llms.txt

# Export and Test Queries

You can use the [MongoDB Extension for Github Copilot](https://www.mongodb.com/docs/mongodb-vscode/copilot.md#std-label-vsce-copilot) to export and test your application queries in playgrounds.

**Note:**

The Export Code to Playground feature is only available if you enable MongoDB Extension for Github Copilot.

## Export to Playground

Use the following steps to test your application code in a playground:

1. Open the project file that contains the MongoDB query that you want to export.

2. Highlight the query that you want to test.

3. Right-click to select Export Code to Playground.

   Right-click your selected code to open the options menu. Click MongoDB Copilot Extension > Export Code to Playground.

   ![Screenshot of the export code to playground menu option.](/images/export-to-playground.png)

   When you click Export Code to Playground, Visual Studio Code opens a new playground with your selected code in MongoDB shell syntax.

Once you export your code to a playground, you can click  on the top right of your window to run your query.

You can also convert your code to a driver language with the [Export to Language](https://www.mongodb.com/docs/mongodb-vscode/export-to-language.md#std-label-vsce-export-to-language) feature.

**See also:**

- [Explore Your Data with Playgrounds](https://www.mongodb.com/docs/mongodb-vscode/playgrounds.md#std-label-vsce-playgrounds)

- [MongoDB Extension for Github Copilot](https://www.mongodb.com/docs/mongodb-vscode/copilot.md#std-label-vsce-copilot)
