The question Type straight quotes (",') when smart quotes is turned on answers this quite well for macOS, but the solution (using a text replacement with the straight quote as the replacement phrase) does not appear to work in iOS:
I like to use the typographically correct smart quotes, but when I need to edit text in a markup or programming language, it’s frequently the case that I need to enter straight single and double quotes.
These text replacements pictured (and more such as exactly the ones mentioned in the macOS solution above) don’t get replaced at all if they contain quotes (either straight or curly) in the shortcut. On the other hand, if I use a text replacement like the
^^s at the bottom here:
I get a
‘ character, even though the replacement’s phrase is the
' character. (Note that the examples above that one also beginning with double-carets, such as
^^1 → ¹,
^^9 → ⁹, etc., work just fine—I used them in this sentence to type those superscript digits.)
I’m looking for a way to set a global hotkey to toggle smart quotes, a macro to insert a single or double straight quote, or anything easier than my current two methods:
- Go to Settings → Keyboard and toggle the smart quotes, type the straight quote, and go back to Settings → Keyboard and toggle them back (this is what I do when I need to only type straight quotes for a period of time); or
- Find a single quote or double quote somewhere and copy/paste it. (This is what I do when I must mix the two in ongoing text editing.)
Both are painful. I’d appreciate any trick to make it less so!