Periphery for VS Code
May 10, 2026 ยท View on GitHub
Find unused Swift code in your Swift packages. Automatically scans after package builds by the Swift extension, and reports results in the Problems pane.
Requirements
- Periphery installed and on your
$PATH - The Swift extension for VS Code, available on the Visual Studio Marketplace and Open VSX Registry.
Usage
- Open a Swift package in VS Code.
- Build it using the Swift extension.
- Periphery scans automatically after a successful build and reports unused code in the Problems pane.
You can also run a scan manually from the command palette: Periphery: Scan for Unused Code.
To clear results: Periphery: Clear Results.
Settings
| Setting | Default | Description |
|---|---|---|
periphery.executablePath | periphery | Path to the periphery binary |
periphery.scanOnBuild | true | Automatically scan after a successful Swift build |