Swift Format

Swift

Formats Swift source code using swift-format on save for consistent style.

by nicklockwood

200K+
Installs

One-click install

More clients (VS Code Insiders, Antigravity…)

Antigravity (Google) and other VS Code forks support the same Marketplace — search for Swift Format inside the IDE.

CLI install

Run this command in your terminal to install the extension:

code --install-extension nicklockwood.swiftformat

Install from VS Code

  1. Open VS Code and press Ctrl+Shift+X (or Cmd+Shift+X on macOS) to open the Extensions panel.
  2. Search for nicklockwood.swiftformat.
  3. Click Install and reload if prompted.

Details

Publisher: nicklockwood
Category: Swift
Installs: 200K+
Extension ID: nicklockwood.swiftformat