8

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.

Pablo Bianchi
  • 14,308
  • 4
  • 74
  • 117
Joe Mornin
  • 165
  • 1
  • 12
  • 2
    This may be what you want: http://askubuntu.com/questions/32764/using-alt-keycode-for-accents – TheWanderer Feb 22 '16 at 22:15
  • 5
    Possible duplicate of [How can I type a unicode character (for example, em-dash —?)](http://askubuntu.com/questions/31258/how-can-i-type-a-unicode-character-for-example-em-dash) – muru Feb 23 '16 at 00:41

3 Answers3

12

You have to press Ctrl + Shift + u (for Unicode characters) then add the respective hexadecimal number of your symbol, which you can get from the Character Map (gucharmap) and press enter. In your case this would be 2013 or 2010.

Pablo Bianchi
  • 14,308
  • 4
  • 74
  • 117
HATEthePLOT
  • 506
  • 6
  • 14
5

Compose+--. is the fastest way.

Kev
  • 101
  • 1
  • 5
1

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.

machineghost
  • 229
  • 2
  • 10