Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.81 KB

README.md

File metadata and controls

46 lines (34 loc) · 1.81 KB

XEBox - an Xcode source editor extension toolbox

Platform Swift 3 License Twitter

XEBox is a collection of Xcode source editor extensions I made for swift coding, which including:

  • Turn to NSLocalizedString
  • Move up into braces
  • Turn to optional binding
  • Import for me

Turn to NSLocalizedString

Type a quoted string and turn it into the form of: NSLocalizedString(“string”, comment:”string”)

Turn to optional binding

This one turns an “let” assignment into an optional binding.

Move up into braces

This one moves the selected codes up into the nearest braces.

Import for me

Type 'import #module#' or just even the module name in a new line and launch the extension, the module will be automatically imported to the head of file and leave you at where you are.

How to use

  1. Download the code
  2. Open the project in Xcode 8.0 or later.
  3. Resolve the code sign issues
  4. Build and run.
  5. You may need to enable the extension from  -> System Preferences -> Extensions -> Xcode Source Editor
  6. You will find the command in the Editor Menu.

Author

Lu Yibin

License

LYTabView is available under the MIT license. See the LICENSE file for more info.