推荐几个你应该知道的Studio插件


1Parcelable 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



4android-selector-chapek



资源按照一定的命名格式,然后右键自动生成selcetor~


  1. Right-click folder with your resources e.g 'drawable-xhdpi'



  1. Select 'Generate Android Selectors'



  1. All selectors automagically appear in the 'drawable' folder!



https://github.com/inmite/android-selector-chapek



5 Json转Java类




这个JSON转Java类,很方便~


https://github.com/nvinayshetty/DTOnator




6AndroidLocalizationer



Right click the strings resource file, choose 'Convert to other languages'.



Then check the target languages.


 
After clicking 
OK, 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导致该文的产生,所以也是本文的协同作者,并且他目前维护了一份该仓库的中文版本:


https://github.com/sunzq19931016/Android-Studio-Plugins-cn



文章来自微信 鸿洋 & sunzq 鸿洋

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值