Straight Lines with Brushes

To paint a straight line with any of the brush tools, just click on the canvas where you want to start your line, then hold the Shift key, and click where you want the line to end. Photoshop will then paint a straight line between these points.