# Set default document format

Set default document format as rich text (.rtf) or plain text (.txt).

  • Tested on macOS:
    • Big Sur
  • Parameter type: bool

# Set to true (default value)

defaults write com.apple.TextEdit RichText -bool true && killall TextEdit

Example output with value set to true

  • Rich text is enabled.

# Set to false

defaults write com.apple.TextEdit RichText -bool false && killall TextEdit

Example output with value set to false

  • Rich text is disabled.

# Read current value

defaults read com.apple.TextEdit RichText

# Delete current value

defaults delete com.apple.TextEdit RichText && killall TextEdit