This is the default option in LibreOffice when you create a new table. If you are working on an existing table or if you use a template, follow these steps: