LineSmith for Xcode
Adds 31 line-editing and Swift-generation commands to Xcode’s editor.
What it does
LineSmith is a source editor extension: it appears under Editor → LineSmith in Xcode and adds the line operations Xcode never shipped — move, duplicate, delete, join and sort lines — plus Swift code generation helpers.
Assign keyboard shortcuts in Xcode → Settings → Key Bindings or the commands are a menu trip each time.
Notes
The app on disk may still be named TextPlus; that was its earlier name before it was rebranded to LineSmith. Source editor extensions must be enabled once in System Settings → Login Items & Extensions → Xcode Source Editor.
Alternative to
| Alternative | Type | Trade-off |
|---|---|---|
| Xcode’s own commands | Built in | ⌘D duplicates a line and ⌥⌘[ / ⌥⌘] move one; check before installing anything |
| VS Code or Cursor with sourcekit-lsp | Free / Freemium | Richer line editing, at the cost of leaving Xcode |
| SwiftFormat | Open source | For the formatting half, applied consistently on save or in CI |
Install
LineSmith for Xcode on the Mac App Store
Or with mas:
mas install 1234445803