开发者

Are there Android Code Templates for Eclipse?

开发者 https://www.devze.com 2023-03-17 10:18 出处:网络
Is there a \"standard\" set of code templates for android development in Eclipse? I realize I can make my own, but I\'m just starting out and prefer to l开发者_运维知识库earn from other people\'s exa

Is there a "standard" set of code templates for android development in Eclipse?

I realize I can make my own, but I'm just starting out and prefer to l开发者_运维知识库earn from other people's examples instead of making my own mistakes.


I think this is what you are looking for:

https://raw.github.com/android/platform_development/master/ide/eclipse/android-formatting.xml


Yeah there are standard templates, if you want to look at them then go to Window->preferences-> Expand Java-> expand Code Style then click on Code Templates, you can view and edit the standard templates


Note that there are 2 kinds of templates for Java in Eclipse

  • Preferences > Java > Code Style > Code Templates
  • Preferences > Java > Editor > Templates

Which kind are you looking for ?

0

精彩评论

暂无评论...
验证码 换一张
取 消