> Markdown version of [Visual Studio Code](https://vaadin.com/docs/next/getting-started/dev-environment/run/vscode). Section index: [llms.txt](https://vaadin.com/docs/next/getting-started/llms.txt)

# Run in Visual Studio Code

You can run and debug your Vaadin application in Visual Studio Code as you would any other Java application. Open the main `Application` class. Then select either **Run Java** or **Debug Java** in the upper-right corner indicated by a red circle in this screenshot:

[Image: Run Java button in VS Code]

The application starts up and you’ll be able to access it at <http://localhost:8080>. Changes to stylesheets are applied to the browser automatically. However, to enable Java hotswap, you have to take some additional actions.

## <a id="enabling-hotswap-using-vaadin-copilot"></a>Enabling Hotswap Using Vaadin Copilot

The easiest way of enabling hotswap is to use Vaadin Copilot. Start your application, open it in a browser and move your mouse pointer over the **Copilot** button at the bottom-right corner:

[Image: Vaadin Copilot menu visible in a browser]

> **Important:** The Copilot button is only available when the application is running in development mode. It is not available in production mode.

Now click **Development workflow**. Your browser should look something like this:

[Image: Vaadin Copilot development workflow dialog]

Copilot guides you through the steps needed to optimize your development workflow. This includes installing the Visual Studio Code extension and setting up hotswap.

When you have completed all the steps, you can verify that everything is working. Start your application with hotswap enabled, and open it in a browser. Then select **Copilot** **›** **Development workflow** again. All the checkmarks should be green:

[Image: Vaadin Copilot verifying that Java Hotswap is enabled]
