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 ?
精彩评论