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

Advertisements

Hello World in Perl (For Windows)

1. Go to http://www.activestate.com/activeperl/downloads
2. For 32 bit machine download x86
3. For 64 bit machine download x64
4. Open notepad
5. Then Write print(“Hello World”)
6. Save the file as filename.pl
7. Go to Start -> Run -> write cmd
8. Drag the file into the cmd window and hit enter
9. You will see Hello World