Source editor extensions add custom commands to the editor menu in Xcode. They can modify the source code of the current file or operate on the currently selected text.
Livefront maintains a single source editor extension application called "Livefront Developer Tools". It's commands are grouped in the "Livefront" submenu of the Xcode editor menu.
- Open the
LivefrontDevToolsproject in Xcode. - Create a build archive with
Product > Archive. - Locate the generated archive package file.
- View the package contents and find the
Livefront Developer Tools.appfile.
- Download the latest pre-compiled release binary from the
Releaseslist of this repository.
- Move
Livefront Developer Tools.appto yourApplicationsfolder. - Run the app once to register the extension with macOS.
- Close the app.
- Go to
System Settings > Privacy & Security > Extensions > Xcode Source Editor. - Check the box for
Livefront. - Open Xcode.
- Go to
Editor > Livefrontto use the new source editor commands.
- Alphabetize (BETA): Alphabetically sorts the declarations in a whole file or selected lines.
- Format Comments: Formats the comments of a whole file or selection of lines to match Livefront's Swift comment style guidelines.