Hold Shift to constrain the line angle to the increment set in Preferences (default = 45 degrees).
See Also
Guides
Creating a Horizontal or Vertical Guide Line
Converting Objects to Guides
Locking Guides
Selecting All Guides