Coder Social home page Coder Social logo

infiniteqin / automaticcompletionplugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lllaiyoung/automaticcompletionplugin

0.0 2.0 0.0 19 KB

Objc,Getter 函数自动补全插件,基于 Xcode 8 的 Source Editor Extension 开发

License: MIT License

Objective-C 100.00%

automaticcompletionplugin's Introduction

为什么要写这么一个插件?

毫无疑问,使用插件就是提高开发效率。将一些毫无套路的,特定格式的代码集合在一个工具里面,需要的时候直接使用快捷键将它们呼唤出来。

运行平台

这是一款基于 Objc 的 Getter 函数自动补全插件,基于 Xcode 8 的 Source Editor Extension 开发。

效果图:

效果演示.gif

用法:

  1. 选择 AutomaticCompletion 运行,如下图
    Paste_Image.png Paste_Image.png

  2. 之后会弹出一个黑色的Xcode,如下。
    Paste_Image.png
    在右侧选择项目打开。

  3. 将光标移动到需要补全 Getter 函数的位置,在Xcode中选择Editor->AutomaticCompletion->Source Editor Command进行补全,如下图
    Paste_Image.png

快捷键设置

在用户偏好设置里面选择Key Bindings,输入AutomaticCompletion 使用自定义快捷键 Paste_Image.png

注意事项:

  1. 插件使用的证书要和项目的证书要一致。
  2. 如果如果你的Xcode是运行在 OS X 10.11 El Capitan的话,打开Terminal,执行下面的命令,然后重启Mac。
    sudo /usr/libexec/xpccachectl
  3. 目前是特定的格式,还没实现自定义模版,有特定需求的朋友可以clone一份我的代码,然后改成自己特定的格式。
  4. 每次都需要先运行插件,然后在黑色 Xcode 中运行项目,使用插件,网上也有人说,将编译之后的appex放到/Applications/Xcode.app/Contents/PlugIns,我测试了一下,发现行不通。

代码写的low,望各位大神勿喷。有问题的可以提issue 如果觉得不错,请赏赐一个 star 支持一下!😘

automaticcompletionplugin's People

Contributors

lllaiyoung avatar

Watchers

James Cloos avatar infiQ avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.