In ‘Shape', you can use the Shift key to draw these lines easily. In 'Shape', click and drag and press the Shift key at the same time to switch the line direction by the unit of 45 deg. When you draw a horizontal or vertical line, you can use the Shift key. But one thing to note is that you need to hold down the Shift key until you are finished dragging. If you release the Shift key too early, the line angle will be changed.