先上GayHub地址:Matchmaker。欢迎前去 star 或是提 issue 哈。java
这是一款专为微信小程序开发的插件,目前可在 IntelliJ IDEA 中使用。它能够帮你完成重复机械无趣麻烦的绑定方法的过程,自动的将须要新建的方法注入到 js 文件中去。git
PS:其实我原本的目的是作一个能在 WebStorm 里面使用的插件的,可是没想到作出来以后反而没办法在 WebStorm 用,只能在 IntelliJ IDEA 里用,若是有哥们儿知道怎么搞的话请告知一下,感激涕零。github
这是在 IntelliJ IDEA 中插件的展现效果express
不知道为何,我把插件上传到 JetBrains Plugins Repository 以后它就一直处于 Wait for approve 的阶段,截止目前都是如此,也就是说如今要用的话就只能下载 jar 包而后装载本地插件了,jar 包在这里。apache
咱们都知道,在开发微信小程序的时候,wxml 和 js 之间若是要有事件响应的话,是要先在 wxml 用 bind***/catch***
标签绑定一个方法,而后在 js 里面一个一个去把 wxml 里面定义的方法写出来的。小程序
这个写空方法的过程其实很无聊,就跟 Android 里面的 findViewById 同样。想一下若是一个比较复杂的页面有十几个甚至几十个绑定的方法,那写起来多尴尬。这个插件就是用来把 wxml 里面声明的方法直接注入到 js 里面的,自动生成代码,让咱们能够把时间和精力花在更有技术含量的地方。微信小程序
用法很是的简单,直接在 JS 代码点击右键,而后 Generate -> Match make 就能够了。固然你能够为这个功能设置一个快捷键,让它更加方便。微信
Copyright 2014-2016 lypeer.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.复制代码
再上 GayHub 地址:Matchmaker。欢迎前去 star 或是提 issue 哈。app