To find synonyms or antonyms for a word in word processing software like Microsoft Word or LibreOffice Writer, you need to use the Tools menu.
Here is exactly where to look depending on the software you are using:
In Microsoft Word
Go to the Review tab/menu on the ribbon.
In the "Proofing" group, click on Thesaurus.
(Shortcut: Select the word and press Shift + F7)
In LibreOffice Writer
Click on the Tools menu in the main menu bar.
Hover over Language and select Thesaurus.
(Shortcut: Select the word and press Ctrl + F7)
In both applications, an even faster way is to simply right-click the word you have typed, hover over Synonyms in the context menu, and choose a replacement word right there.