How can I type an en dash?
On OS X, I can type Alt + - (hyphen). On Windows, I can type Alt+0150.
If you're not familiar with the different types of dashes, you can read about them here.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
As the community wiki says
Compose+--. is the fastest way.
NOTE: That is Compose +
- (a hyphen keypress), a second press of that same key, and a
. (period keypress), all in close succession.
But for those wondering what a "Compose key" is, it's a key not found on many modern American keyboards ... but that doesn't mean you're out of luck. You can enable a "Compose" key using your OS variant's keyboard tool.
For instance, in Linux Mint you would go to keyboard settings (or "preferences"), click the Layout tab, click the Options button, and then use Position of Compose Key option to set which key on your keyboard you want to use.
I picked the right Windows key on my keyboard, and from that point on I could press that key, and then the hyphen key three times, to generate an em dash, or that key, a period, and two hyphens to generate an en dash.