先上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