> Markdown version of [Go to Source](https://vaadin.com/docs/next/tools/copilot/features/go-to-source). Section index: [llms.txt](https://vaadin.com/docs/next/tools/llms.txt)

# Go to Source

Every component in the running application is created somewhere in your code. Copilot opens that line in your IDE.

Open the code behind a button

1. Right-click a component and point at **Go to Source**. Choose **Instance created** for the line that creates it, or **Attached to UI** for the line that adds it to the view.

   [![Your browser does not support the video tag.](../../../vaadin/videos/copilot/go-to-source/01-context-menu.jpg)](../../../vaadin/videos/copilot/go-to-source/01-context-menu.mp4)

2. Your IDE opens the file at that line.

   [![Your browser does not support the video tag.](../../../vaadin/videos/copilot/go-to-source/02-ide.jpg)](../../../vaadin/videos/copilot/go-to-source/02-ide.mp4)

## <a id="shortcuts"></a>Shortcuts

Select a component and press `Ctrl`+`B` to open the line that creates it, or `Ctrl`+`Shift`+`B` to open the line that adds it to the view.

For the best experience, use the Vaadin plugin for your IDE. See [IDE Integration](https://vaadin.com/docs/next/tools/copilot.md#ide-integration).
