90 degree angle on tubing how to

Hi, Sketchup in Architecture. Want a cornice to follow around the house. Inside and outside 90° Angles (corners).

It happens by chance. Done it at three corners - but no more chance.

How do I do that on a regular basis?

Thx, Thomas