In the Source Editor, you can go to the beginning of a file by pressing Ctrl-Home. You can go to the end of a file by pressing Ctrl-End.