All Projects → MellongLau → Ammethod2implement

MellongLau / Ammethod2implement

Licence: mit
Xcode plugin to generate implement code for the selected method and const string.

Projects that are alternatives of or similar to Ammethod2implement

Scxcodeminimap
Sublime Text like Minimap for Xcode
Stars: ✭ 1,037 (+600.68%)
Mutual labels:  xcode, xcode-plugin
Scxcodeeditorinset
Xcode plugin that adds an empty (configurable) space to the end of the editor text view
Stars: ✭ 64 (-56.76%)
Mutual labels:  xcode, xcode-plugin
Kshobjcuml
KSHObjcUML can show oriented graph of dependencies between Objective-C and Swift classes in your project
Stars: ✭ 1,039 (+602.03%)
Mutual labels:  xcode, xcode-plugin
Peckham
Add #import-s from anywhere in the code.
Stars: ✭ 719 (+385.81%)
Mutual labels:  xcode, xcode-plugin
Swimat
An Xcode formatter plug-in to format your swift code.
Stars: ✭ 1,388 (+837.84%)
Mutual labels:  xcode, xcode-plugin
Import
Xcode extension for adding imports from anywhere in the code ☝️
Stars: ✭ 818 (+452.7%)
Mutual labels:  xcode, xcode-plugin
Dyci Main
Dynamic Code Injection Tool for Objective-C
Stars: ✭ 1,103 (+645.27%)
Mutual labels:  xcode, xcode-plugin
Tulsi
An Xcode Project Generator For Bazel
Stars: ✭ 365 (+146.62%)
Mutual labels:  xcode, xcode-plugin
Snowonder
🔮 Magical import declarations formatter for Xcode
Stars: ✭ 100 (-32.43%)
Mutual labels:  xcode, xcode-plugin
Xfunnyeditor
Xcode plugin to display an image on the background of the editor
Stars: ✭ 92 (-37.84%)
Mutual labels:  xcode, xcode-plugin
Scxcodeswitchexpander
Xcode plugin that enables switch cases autocompletion
Stars: ✭ 662 (+347.3%)
Mutual labels:  xcode, xcode-plugin
Timliu Ios
iOS开发常用三方库、插件、知名博客等等
Stars: ✭ 10,898 (+7263.51%)
Mutual labels:  xcode, xcode-plugin
Swiftmockgeneratorforxcode
An Xcode extension (plugin) to generate Swift test doubles automatically.
Stars: ✭ 522 (+252.7%)
Mutual labels:  xcode, xcode-plugin
Gitdiff9
Highlights lint, deltas and recent changes against git repo in Xcode 9
Stars: ✭ 43 (-70.95%)
Mutual labels:  xcode, xcode-plugin
Swiftai
SwiftAI, write Swift code smart. SwiftAI can generate Model class from JSON now. Codable and HandyJSON is supported. More features will be add.
Stars: ✭ 470 (+217.57%)
Mutual labels:  xcode, xcode-plugin
Linessorter Xcode Extension
Xcode Extension that helps you keep your import statements and long code lists organized and uniform
Stars: ✭ 54 (-63.51%)
Mutual labels:  xcode, xcode-plugin
Clangformat Xcode
Xcode plug-in to to use clang-format from in Xcode and consistently format your code with Clang
Stars: ✭ 2,852 (+1827.03%)
Mutual labels:  xcode, xcode-plugin
Xcode Wakatime
Xcode plugin for automatic time tracking and metrics generated from your programming activity.
Stars: ✭ 360 (+143.24%)
Mutual labels:  xcode, xcode-plugin
Xgist
Xcode extension to send code to GitHub's Gist
Stars: ✭ 75 (-49.32%)
Mutual labels:  xcode, xcode-plugin
Xcode developer disk images
Stars: ✭ 125 (-15.54%)
Mutual labels:  xcode, xcode-plugin

AMMethod2Implement Banner

AMMethod2Implement

Build Status Platform: Xcode 6+ License: MIT

A simple Xcode plugin to generate implement code for the selected method, selector and const string, currently, only support objective-c.

可以自动的将.h或者.m .mm里边需要写入的方法自动填充进来。可以选择要导入的方法,然后按 Ctrl+A 或者 Edit > AMMethod2Implement > Implement Method.就会自动填充方法.也可以自行设置快捷键。

如果觉得这款插件不错的话请点击右上角的star和推荐给你的朋友,如果想即时了解到我的最新消息,请拉到底部扫描二维码关注我的公众号

Welcome to join in QQ group 5522740 for further discussion.
欢迎加入QQ群 5522740 交流iOS开发.

##Features(v3.4):

  1. Support extern NSString * const implement.
  2. Support multiline method and const string implement.
  3. Support categories.
  4. Support declare method.
  5. Support @select(method:) implement.
  6. Support selector with none parameter.
  7. Support changing the keyboard shortcut.
  8. Support parameterless method invocation(New).
  9. Support get method for property if get method not exist(New).

目前版本支持h文件声明方法自动生成实现,m或者mm文件已写好的方法生成方法声明到h文件, extern NSString * const@select(method:)[self methodName] 实现代码生成

Usage

Use key Ctrl+A or go to menu Edit > AMMethod2Implement > Implement Method.

  1. Multiline method and const string implement. usageScreenshot.gif

  2. Declare method. declare_method.gif

  3. Implement selector. implement_selector.gif

Install

You can:

Install from github.

  • Get the source code from github

    $ git clone [email protected]:MellongLau/AMMethod2Implement.git

  • Build the AMMethod2Implement target in the Xcode project and the plug-in will automatically be installed in ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins.

  • Relaunch Xcode.

or

Install via Alcatraz

AMMethodImplementInAlcatraz.png

In any case, relaunch Xcode to load it.

Support

Developed and tested against Xcode 6+.

After upgrade your Xcode, you may need to run below shell script to add your current Xcode DVTPlugInCompatibilityUUID to all the Xcode plugins:

curl https://raw.githubusercontent.com/cielpy/RPAXU/master/refreshPluginsAfterXcodeUpgrading.sh | sh

Thanks

  • (@HelloZJW)[https://github.com/HelloZJW] [Added get method for property if get method not exist]

Todo

  1. Support selector with multi parameters.
  2. Support method invocation with multi parameters.

More

Learn more? Follow my WeChat public account mellong:

WeChat QRcode

License

MIT License

Copyright (c) 2014 Mellong Lau

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].