Android Tips

1. Eclipse shortcut for import package
Windows = Ctrl-Shift-O
Mac = Cmd-Shift-O
2. Eclipse shortcut for Code Indentation Shortcut
Windows = Ctrl + A then Ctrl + Shift + F
Mac = Cmd + A then Cmd + Shift + F
3. Eclipse shortcut for show line number
Windows = Ctrl + F10 then n
Mac = Eclipse -> Preferences -> General -> Editors -> Text Editors -> Show line numbers
4. Comment rule for XML

<!-- this is a comment -->

Eclipse shortcut for Comment
Windows = Ctrl + /
Mac = Cmd + / or Cmd + Shift + C
5. Comment rule for JAVA

//this is a comment or /* this is a comment */

Windows = Ctrl + /
Mac = Cmd + / or Cmd + Shift + C
6. Eclipse shortcut for auto complete
Windows = Ctrl + space
Mac = Ctrl + space