Xcode plugin which help you write code faster.

Last update: Feb 2, 2022

MLAutoReplace

Xcode plugin, Re-Intent, make you write code more quickly.
Use a portion code of VVDocumenter-Xcode.

##Overview You can use shortcut key Shift+Command+\ to auto re-indent all source of the current edit file.

You can custom other replacer with regex.
regex replace
regex replace
pseudo-generic

You can input common getter quickly.
replace getter

##How to install? Download this project and run.

##Regex replacer

Exmple:
replace getter
This item means that plugin will replace @s/ to @property (nonatomic, strong) <#custom#>.

The plugin will detect the content of current input line.

Some placeholders can be replace with context.

  • : current datetime, you can use it to mark your edit time.
  • : the class name of the first @interface XXX : below.
  • <{0}>,<{1}>...: these placeholders will be replaced with its corresponding position of regex result.

A demo for pseudo-generic(ibireme/YYModel#79):

pseudo-generic

It uses two styles of placeholders:

:

regex: ^\s*@[Pp]{2}$
replaceContent: @protocol ;

<{0}>,<{1}>(location placeholders):

regex: ^\s*@property\s*\(\s*nonatomic\s*(,\s*strong\s*|)\)\s*(NSArray|NSMutableArray|NSSet|NSMutableSet)\s*<\s*(\w+)\s*>$
replaceContent: @property (nonatomic<{0}>) <{1}><<{2}> *><<{2}>> *<#name#>

regex: ^\s*@property\s*\(\s*nonatomic\s*(,\s*strong\s*|)\)\s*(NSDictionary|NSMutableDictionary)\s*<\s*(\w+)\s*>$
replaceContent: @property (nonatomic<{0}>) <{1}> *><<{2}>> *<#name#>

##Re-Indent

Just can be quickly re-intent.

If you find that press Shift+Command+\ does nothing.
Please ensure that the shortcut key setting of Re-Intent is default. re-intent shortcut key setting

##Getter replacer

In fact, this feature can be implemented with location placeholders. But I am not willing to delete the old feature.

You need add your own common syntax to the getter replacer.
replace getter

means the property name.
<#xxx#> means where need to input in,it is recommended to provide.

Exmple:

"]; imageView.contentMode = UIViewContentModeScaleAspectFill; <#custom#> _ = imageView; } return _; }">
- (UIImageView *)
{
    if (!_) {
		UIImageView *imageView = [[UIImageView alloc]init];
        imageView.image = [UIImage imageNamed:@"<#imageName#>"];
        imageView.contentMode = UIViewContentModeScaleAspectFill;
        <#custom#>

        _ = imageView;
    }
    return _;
}

You must reload .plist file with shortcut control+option+command+\ after editing and saving it.
You can also reload it with the Reload .plist Data button in MLAutoReplace window.

How to use:

- (UIImageView *)xxx///

Dont forget /// please. :)

GitHub

https://github.com/molon/MLAutoReplace
You might also like...

CleanClosureXcode - An Xcode Source Editor extension to clean the closure syntax.

CleanClosureXcode - An Xcode Source Editor extension to clean the closure syntax.

Clean Closure - Xcode Source Editor Extension Clean Closure is a simple Xcode Source Editor Extension for Xcode 8. It parses each line of a file to si

Apr 19, 2022

Mark - Xcode extension for generating MARK comments.

Mark - Xcode extension for generating MARK comments.

Mark Xcode extension for automatic generation of MARK comments. Why? If you would like to organize your code with MARK comments, this will save you so

Jun 18, 2022

DocumenterXcode - Attempt to give a new life for VVDocumenter-Xcode as source editor extension.

DocumenterXcode - Attempt to give a new life for VVDocumenter-Xcode as source editor extension.

DocumenterXcode Xcode source editor extension which helps you write documentation comment easier, for both Objective-C and Swift. This project is an a

May 29, 2022

Snowonder - ๐Ÿ”ฎ Magical import declarations formatter for Xcode

Snowonder - ๐Ÿ”ฎ Magical import declarations formatter for Xcode

Snowonder is Xcode Extension that adds some convenient formatting operations for Import Declarations. This extension is created with latest stable Swi

Apr 25, 2022

XVim2 - Vim key-bindings for Xcode 9

XVim2 XVim2 is a Vim plugin for Xcode intending to offer a compelling Vim experience without the need to give up any Xcode features. Xcode 9 or above,

Jun 24, 2022

Sharkconnect: a large iOS project which serves as a centralized platform for high schools

Sharkconnect: a large iOS project which serves as a centralized platform for high schools

Sharkconnect Demo Sharkconnect is a content crowdsourcing platform in a high sch

Jan 11, 2022

Xcode-streamdeck-plugin - A Stream Deck plugin for Xcode

Xcode-streamdeck-plugin - A Stream Deck plugin for Xcode

Stream Deck Xcode Plugin This repository contains a Stream Deck plugin to add so

Jun 21, 2022

LeitnerBox is an iOS application which help language learners to memorize words faster.

LeitnerBox is an iOS application which help language learners to memorize words faster.

Leitner-Box Leitner-Box is an iOS application to memorize word forever. Features Memorize words and phrases. Ability to export the database and import

Jun 16, 2022

This mobile application built in SwiftUI is designed to help you medicate your cat faster.

This mobile application built in SwiftUI is designed to help you medicate your cat faster.

MediKitty This mobile application built in SwiftUI is designed to help you medicate your cat faster. If you medicate your kitty it will be happy Add w

Nov 2, 2021

Cordova-plugin-saveimage - This plugin helps you save images

cordova-plugin-saveimage This plugin helps you save images on iOS/Android Instal

May 11, 2022

๐Ÿˆ Cache CocoaPods for faster rebuild and indexing Xcode project.

๐Ÿˆ Cache CocoaPods for faster rebuild and indexing Xcode project.

๐Ÿˆ Cache CocoaPods for faster rebuild and indexing Xcode project.

Jun 27, 2022

๐Ÿˆ Cache CocoaPods for faster rebuild and indexing Xcode project.

๐Ÿˆ Cache CocoaPods for faster rebuild and indexing Xcode project.

Motivation Working on a project with a huge amount of pods I had some troubles: - Slow and unnecessary indexing of pods targets, which implementation

Jun 20, 2022

LinkedLog is a Xcode plugin that includes a Xcode PCH header file template that adds the macros `LLog` and `LLogF` and parses their output to link from the console to the corresponding file and line.

LinkedLog is a Xcode plugin that includes a Xcode PCH header file template that adds the macros `LLog` and `LLogF` and parses their output to link from the console to the corresponding file and line.

LinkedLog Xcode Plugin LinkedLog is a Xcode plugin that includes a Xcode PCH file template that adds the macros LLog and LLogF. The LLog macro will wo

Feb 23, 2021

Xcode plugin that brings โ‡งโŒ˜T from AppCode over to Xcode

Aviator An Xcode Plugin that brings โ‡งโŒ˜T over to Xcode This minimal plugin allows you to use the key combo โ‡งโŒ˜T to toggle between source and test files.

Aug 18, 2018

This Xcode plugin shows Xcode app version in the Dock and App Switcher icon

This Xcode plugin shows Xcode app version in the Dock and App Switcher icon

Xcode Icon Version Tired of this Xcode icon always showing multiple times in your App Switch with no help watshoever as to which version you are curre

Aug 20, 2021

AwaitKit is a powerful Swift library which provides a powerful way to write asynchronous code in a sequential manner.

AwaitKit is a powerful Swift library which provides a powerful way to write asynchronous code in a sequential manner.

AwaitKit is a powerful Swift library inspired by the Async/Await specification in ES8 (ECMAScript 2017) which provides a powerful way to write asynchronous code in a sequential manner.

Jun 18, 2022

In this tutorial, youโ€™ll write your very first Core Data application with SwiftUI in Xcode

TodoApp-IOS In this tutorial, youโ€™ll write your very first Core Data application with SwiftUI in Xcode. Youโ€™ll see how easy it is to get started with

Dec 13, 2021

An easier and faster way to code Autolayout

An easier and faster way to code Autolayout

EZAnchor ไธญๆ–‡ไป‹็ป An easier way to code Autolayout Are you annoyed of coding .active = true while using Autolayout Anchors over and over again? Are you an

Feb 20, 2022
Comments
  • 1. How to use auto getter generator

    I've installed this plugin and confirm that getter plist exits.

    Also I reload .plist data before I use it,but when I write getters, it seems doesn't work.

    Reviewed by ruozi at 2015-08-31 13:45
  • 2. Doesn't seem to be working in Xcode 6.2

    I have this plugin installed via Alcatraz and yet it doesn't appear to be doing anything. I can not see any menu options for editing the plist. The auto indent is also not functional.

    Reviewed by kvnify at 2015-03-12 21:26
  • 3. How to support newest version Xcode?

    find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add `defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`
    
    Reviewed by molon at 2015-09-20 10:00
Xcode plugin to let you jump to GitHub History, Blame, PRs, Issues, Notifications of any GitHub repo with one shortcut.
Xcode plugin to let you jump to GitHub History, Blame, PRs, Issues, Notifications of any GitHub repo with one shortcut.

Reveal-In-GitHub Xcode plugin to let you jump to GitHub History, Blame, PRs, Issues, Notifications of current repo in one second. My company work on G

May 17, 2022
Nef-plugin - ๐Ÿ”Œ an Xcode extension to use nef features easily
Nef-plugin - ๐Ÿ”Œ an Xcode extension to use nef features easily

This project provides an extension for Xcode to integrate some nef features directly in the IDE. Using the core of nef, you can export snippets from y

Jun 14, 2022
Plugin for Xcode to integrate the Reveal App to your project automatic.
Plugin for Xcode to integrate the Reveal App to your project automatic.

Reveal-Plugin-for-Xcode Plugin for Xcode to integrate the Reveal App to your project automatic(Without any modifications to your project). Please note

Apr 20, 2022
XShared - Xcode extension that allows you copying the code with special formatting quotes for social (Slack, Telegram)
XShared - Xcode extension that allows you copying the code with special formatting quotes for social (Slack, Telegram)

This extension is for those who like to show code to the public ?? Xcode extension which allows you copying the code with special formatting quotes fo

Jun 18, 2022
XTextHandler - Xcode Source Editor Extension Tools (Xcode 8 Plugins)
XTextHandler - Xcode Source Editor Extension Tools (Xcode 8 Plugins)

Download Let's Swift! xTextHandler has been rewritten in Swift. The Objective-C version can be found in: https://github.com/cyanzhong/xTextHandler-obj

Jun 18, 2022
SwiftInitializerGenerator - Xcode Source Code Extension to Generate Swift Initializers
SwiftInitializerGenerator - Xcode Source Code Extension to Generate Swift Initializers

Swift Initializer Generator This Xcode Source Code Extension will generate a Swift initializer based on the lines you've selected. Handy if you made a

Jun 18, 2022
XcodeEquatableGenerator - Xcode 8 Source Code Extension will generate conformance to Swift Equatable protocol based on type and fields selection.
XcodeEquatableGenerator - Xcode 8 Source Code Extension will generate conformance to Swift Equatable protocol based on type and fields selection.

Depricated! There is not need for it at the moment as Swift compiler can do that for us ?? Swift Equatable Generator Xcode 8 Source Code Extension wil

Feb 1, 2022
Import - Xcode extension for adding imports from anywhere in the code โ˜๏ธ
Import - Xcode extension for adding imports from anywhere in the code โ˜๏ธ

Import โ˜๏ธ Xcode extension for adding imports from anywhere in the code. Now available on App Store Why? Because sometimes you are on 300th line of cod

Jun 11, 2022
Xgist - Xcode extension to send code to GitHub's Gist
Xgist - Xcode extension to send code to GitHub's Gist

Xgist Xgist is a Xcode extension to send code to GitHub's Gist. The extension will send your code selection to Gist and automatically copy the Gist UR

Jun 18, 2022
Comment-Spell-Checker - Xcode extension for spell checking and auto-correcting code comments.
Comment-Spell-Checker - Xcode extension for spell checking and auto-correcting code comments.

Comment Spell Checker An Xcode Source Editor extension that runs spell check and auto correct on your code comments. Features Supports mutliple commen

May 31, 2022