Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

On macOS, Option+Shift+- and Option+- insert an em dash (—) and en dash (–), respectively. On Linux, you can hit the Compose Key and type --- (three hyphens) to get an em dash, or --. (hyphen hyphen period) for an en dash. Windows has some dumb incantation that you'll never remember.


For Windows it's just easier to make a custom keyboard layout and go to town with that: https://www.microsoft.com/en-us/download/details.aspx?id=102...


I prefer the linux compose-key style: https://github.com/samhocevar/wincompose


On MacOS and iOS, two dashes (i.e., the -- characters) automagically turns into an em dash (—). No special commands needed.


Alt+0151 or WIN+SHIFT+-, but I can't seem to make the WIN+SHIFT+- combo work in browser, only in a text editor.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: