> ## Documentation Index
> Fetch the complete documentation index at: https://docs.pcb.new/llms.txt
> Use this file to discover all available pages before exploring further.

# Visual Studio Code extension

> Edit Zener files and inspect generated schematics in Visual Studio Code

# Visual Studio Code extension

The Zener extension adds language support and schematic previews for `.zen`
files. It provides syntax highlighting, completion, hover information,
diagnostics, definition navigation, and debugger integration.

## Install and open a schematic

1. Install the extension from the [Visual Studio Code Marketplace](https://marketplace.visualstudio.com/items?itemName=diode-inc.zener)
   or [Open VSX](https://open-vsx.org/extension/diode-inc/zener).
2. Open a PCB workspace in Visual Studio Code.
3. Open a `.zen` file.
4. Select **Open Schematic** in the editor toolbar.

The preview updates when the source changes. Diagnostics identify syntax,
evaluation, and connection errors in the editor.

<img className="block dark:hidden" src="https://mintcdn.com/diodecomputersinc/H5XHXuwwC1Qeqier/images/vscode-light.png?fit=max&auto=format&n=H5XHXuwwC1Qeqier&q=85&s=47444bb9a37fbe627a46eeff88015dda" alt="Zener schematic preview in the light Visual Studio Code theme" width="2047" height="1096" data-path="images/vscode-light.png" />

<img className="hidden dark:block" src="https://mintcdn.com/diodecomputersinc/H5XHXuwwC1Qeqier/images/vscode-dark.png?fit=max&auto=format&n=H5XHXuwwC1Qeqier&q=85&s=c93896882e25fa6f5164775f3f2bbbd1" alt="Zener schematic preview in the dark Visual Studio Code theme" width="4092" height="2192" data-path="images/vscode-dark.png" />
