Rotation increment snapping

Hi.It would be cool to have a auto-degree function while rotating an object. Example:If you rotate an object using the small rectangle, the object will be smoothly rotated. Now, if you hold down the shift-key (or alt-key?), the object will be automatically snapped to 45° steps like 0°, 45°, 90°, ...Regards,Marc