How to automatically adjust/rotate item on terrain when placed?

It gets a little tiring trying to rotate an item to be perfectly fit on a terrain then moving it to where I need it. Is there a tool that automatically places the item on the right angle on terrain?
Thanks!

I saw one recently