Turn on data detectors in TextEdit on Mac
In TextEdit, you can use data detectors to automatically detect dates, times, and contact information. Then, use the information to update a contact, create a new Calendar event, and more.
In the TextEdit app on your Mac, choose TextEdit > Settings, then click New Document.
Select “Data detectors” under Options.
Data detectors is turned on for all new documents.