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

Usage

  1. Open a Swift package in VS Code.
  2. Build it using the Swift extension.
  3. 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

SettingDefaultDescription
periphery.executablePathperipheryPath to the periphery binary
periphery.scanOnBuildtrueAutomatically scan after a successful Swift build