Pressing "-" and a space gets replaced by an emdash to me in LibreOffice. No extra keystrokes required.
en dash: https://www.compart.com/en/unicode/U+2013
em dash: https://www.compart.com/en/unicode/U+2014
Edit: Ah, Libreoffice does have a built-in autocorrect for em dash, but you have to type this:
:---:So ":---:" does work for the em dash? I thought something with fewer keystrokes work, too, at least I remember the em dash from less, but perhaps I just typed it so quickly I did not realize it was indeed ":---:".
Incidentally, I turned this autocorrection off when people started associating em dashes with AI writing. I now leave them manual double dashes--even less correct than before, but at least people are more likely to read my writing.