I used to sleep early when I was a student.
Explanation: "Used to" is the correct choice in this sentence to indicate a past habit. "Would" can also be used in this context to talk about past repeated actions, but in this case, "used to" is more commonly used to describe a habitual action that happened regularly in the past.