Either put the car in 5th gear with the handbrake yanked up, or remove the starter and use a screwdriver to wedge the ring gear while undoing the bolt.
If your doing a cam belt change and u choose the in gear method remember to fully time the belt and tension it back up before tightening the bottom pulley bolt!