How To Type Em And En Dashes Outside Your Word Processor
Stop avoiding dashes in your writing just because you don’t know how to type them outside of word processors. Learn the proper keyboard shortcuts and you can type these essential parts of the English language in basic text editors, browsers and anywhere else you may need them.
The en dash (–) is my favorite piece of punctuation–it’s perfect for inserting points, like this one–but I’ve been neglecting it in my writing for a couple of years, for a really dumb reason.
What’s my dumb reason? I’ve stopped using Word and Open/Libre Office. I know their shortcut for an em dash–type two dashes between two words and they will transform once you type a space after the second word.
I stopped using word processors when I started writing for the Internet, however, because they add a bunch of nonsense code to my writing. But outside programs with their own shortcut, I never got around to learning how to write em or en dashes. This means the text editors and browsers I now do my writing in are dashless wastelands. There are online tools for creating em dashes , and I’ve resorted to Googling “en dash” and copying the resulting punctuation, though
Not anymore. I’m going to stop restructuring sentences out of laziness, and I’m going to help you do so as well. Here’s how to make your favorite punctuation on your favorite operating system. Keep reading!
Create Em and En Dashes On A Mac!
First up: the easy one. Apple’s operating system OS X comes with a couple of keyboard shortcuts that make typing em and en dash a snap.
For an en dash (–), use “Option” and “-“. For an em dash (—), use “Option”, “Shift” and “-“.
That’s it! Now let’s see how Microsoft does in comparison.
Create Em and En Dashes on Windows!
Windows users can easily make an em dash if they’re using Word: just type two dashes between two words, as I explained above.
Outside of Word, however, the story is different: you need to use. You’re going to need a keyboard with a number pad for this–the block of numbers to the right of the arrow keys:
Laptops without physical number pads can occasionally use the “Fn” key and some letter keys instead of a number keypad–search your keyboard for blue numbers. Lacking that, you may be out of luck.
To create you dash, first put your cursor where you’d like it and hold down the “Alt” button. Now you need to type a four digit code: 0150 for the en dash (–) or 0151 for the em dash (—).
, if you’re interested.
Create Em and En Dashes On Linux!
So Windows makes things a lot more complicated than OS X does. How does Linux compare? As usual for Linux, there are multiple options–two in this case. Also somewhat typical: they’re not as simple as the Mac solution, but both seem less arbitrary than the Windows one.
You can use whichever method you like, but I’ve made an editorial judgement–subtly displayed in the headers below.
The Stupid Way
So it turns out one way to make em and en dashes in Linux is pretty similar to the Windows method outlined above: you need to type four-digit codes. The good news: you don’t need to a number pad to use them.
Here’s what you do: press “Ctl”, “Shift” and “u”. Doing so will create a magical, underlined “u”. When this appears, you can enter a four-character digit to create whatever character you like. For an em dash, type “2013.” For an em dash, type “2014”. Not simple, but doable.
Want to learn the other codes? Load the “Character Map” program, if your distro came with one. You can find any character here–the code is at the bottom-left of the window (highlighted above).
The Good Way
For two miserable hours I thought the above set of instructions were my fate. I’ve never been so happy to be wrong. Further digging and searching made me aware of the “Compose” key, which makes the creation of many different characters–especially the characters with accents common in French, Spanish and a number of other languages– simple to create.
The compose key also makes typing dashes quick: “Compose” follow by “—” creates an em dash and “–.” creates an en dash.
“But Justin,” I hear you saying, “I don’t have a Compose key on my keyboard. You’re crazy!”
I might be crazy, but you can easily simulate a compose button on your keyboard. In Gnome, KDE or Unity you just need to open the “Keyboard Layout” in your settings menu. Then click “options”, and you’ll be able to map your Compose key.
Set whatever key you’re fine with losing. I got rid of caps lock–a key that allows me to type passwords incorrectly and do nothing else useful. Voila–you’ve got a compose key! Just press it, follow by “—” for an em dash or “–.” for an en dash.
If you’re interested in creating other characters, check out.
So there you have it: how to type the en and em dash in any program, using all three major operating systems. I think it’s a little crazy that keyboards don’t come with a built-in way to type these characters–they’re essential to modern English–but it seems a lot about the modern keyboard hasn’t changed much since the age of the typewriter. English has, and today dashes are common.
Which key on the keyboard would you replace with dashes, if you were tasked with re-designing the keyboard? Let me know in the comments below, along with any dash methods I failed to outline above. Thanks!
Image Credit: Keyboard image at top by Mathias Bigge