推薦幾個你應該知道的Studio插件
新媒體管家
1
Parcelable Code自動生成
一般情況下,很多時候,我們需要序列化的時候,因為Parcalable相關代碼寫起來比較費勁,更多時候都是直接選擇實現Serializable介面。在部分場景下,Parcalable的效率更高,當有了該插件,就支持一鍵生成Parcalable相關代碼啦。
https://github.com/mcharmas/android-parcelable-intellij-plugin
2
Android Methods Count
有了該插件就可以非常方便看到引入的類庫的方法數量,可以用於權衡是否值得引入該庫。
https://plugins.jetbrains.com/plugin/8076-android-methods-count
3
Android-Resource-Usage-Count
打開 Android 項目的資源文件時, 會自動對文件中的資源標籤統計其被引用次數, 展示在標籤的前面。
https://github.com/niorgai/Android-Resource-Usage-Count
4
android-selector-chapek
資源按照一定的命名格式,然後右鍵自動生成selcetor~
Right-click folder with your resources e.g drawable-xhdpi
Select Generate Android Selectors
All selectors automagically appear in the drawable folder!
https://github.com/inmite/android-selector-chapek
5
Json轉Java類
GIF/1866K
這個JSON轉Java類,很方便~
https://github.com/nvinayshetty/DTOnator
6
AndroidLocalizationer
Right click the strings resource file, choose Convert to other languages .
Then check the target languages.
After clicking, the string resources will be translated and created in the correct value folder.
可以自動翻譯strings.xml到目標語言~~我想這個結束了,應該還是需要微調的吧~
https://github.com/westlinkin/AndroidLocalizationer
7
ECTranslation
選中代碼,選擇 Edit -> Translate或者按下 command + I(也可以自己設定)。即可翻譯。效果如下:
https://github.com/Skykai521/ECTranslation
好了,其實好用的插件非常多,那麼有沒有一個地方做這個收集呢?其實是有這樣一個項目的:
https://github.com/balsikandar/Android-Studio-Plugins
本文前除了最後一個以外都選自該項目收集的插件,該倉庫收集插件非常多,建議打開看一眼(不止下圖~)。
當然了,本篇的目的除了介紹一些可以提升開發效率的插件之後,還希望大家能夠掌握Studio插件的編寫,其實並不複雜,以前也寫過教程,可參考:
好了~本文無限感謝sunzq,主要由sunzq導致該文的產生,所以也是本文的協同作者,並且他目前維護了一份該倉庫的中文版本:
優秀人才不缺工作機會,只缺適合自己的好機會。但是他們往往沒有精力從海量機會中找到最適合的那個。
100offer會對平台上的人才和企業進行嚴格篩選,讓「最好的人才」和「最好的公司」相遇。
TAG:鴻洋 |