Skip to content

⚡️ Swift Formatter (Powered by swiftformat)

License

Notifications You must be signed in to change notification settings

aerobounce/Sublime-Swift-Format

Repository files navigation

⚡️ Swift Format

Swift Formatter for Sublime Text

  • Uses swiftformat
  • Format on Save
  • Fast Formatting
  • Inline Syntax Error Popup
  • Auto Scroll to the point parsing error occurred
  • Generate .swiftformat from editing project or file path
  • You can specify multiple candidate paths of .swiftformat

Install

Available via Package Control

  1. Install swiftformat
  2. Package Control: Install Package
  3. Install Swift Format
  4. Linux users: Specify absolute path to swiftformat in Settings.

Commands

Format

  • Format Current File.

Generate .swiftformat from Current File Path

  • Generate .swiftformat inferred from current file path.

Generate .swiftformat from Current Project

  • Generate .swiftformat inferred from current project.