TextEdit opens new documents as rich text, which is great until you want to write a config snippet or a quick README and end up with an .rtf file and curly quotes everywhere. One menu item turns a document into honest plain text.
With the document open, choose Format > Make Plain Text. TextEdit asks you to confirm, and then the fonts, colors, bold and so on are gone. From then on the document saves as a .txt file.
Format > Make Plain Text (saves as .txt)
Format > Make Rich Text (saves as .rtf)
A good example is text you pasted from a website or an email that brought along its own fonts and colors. Make it plain, and you’re left with just the words, ready to copy somewhere else without the styling coming along.
If you mostly write plain text, change the default so you don’t have to do this every time: choose TextEdit > Settings, click New Document and select Plain text under Format. That’s the first thing I’d change on a new Mac, together with turning off Smart quotes under Options in the same tab if you ever paste code.
Be careful, though: the conversion is destructive. Apple says the document loses all text styles and formatting, and switching back with Make Rich Text gives you a rich document again, not the old styling. Images and tables in a rich document don’t survive in a .txt file either. So on a document that matters, I’d use File > Duplicate first and convert the copy.
Further reading: Create, open, and convert documents in TextEdit on Mac