# How to turn off smart quotes and dashes on a Mac

Stop macOS or a supporting app from converting straight quotes and double hyphens, especially when editing code, commands or configuration files.

By [Rudra Satani](https://tapnoise.com/about/#maker), who makes TapNoise · 11 October 2026

In this post

Smart quotes and dashes are useful in prose, but typographic punctuation can break code and shell commands. Turn the substitutions off where you edit plain-text instructions.

## Check the current app first

In apps that support macOS substitutions, open Edit › Substitutions and inspect Smart Quotes and Smart Dashes. Disable the relevant options for your code or command-writing workflow.

Editors may provide their own settings instead. If the Edit menu has no such entry, consult that editor rather than assuming a macOS checkbox controls everything it types.

## Change the system preference if needed

Open System Settings › Keyboard › Text Input › Edit and inspect **Use smart quotes and dashes**. Changing the default affects supporting apps; it does not guarantee that every website or editor uses the same text engine.

The change also does not repair punctuation already present in a file. Inspect existing quotes and dashes before pasting a command or saving a configuration.

## Verify with harmless text

Type straight quotes around a sample word and two hyphens in an empty document. Copy the result into a code editor and inspect it. Appearance alone is unreliable because similar glyphs can represent different characters.

If whole words are being changed as well, see [autocorrect controls](https://tapnoise.com/blog/stop-autocorrect-mac/). For inserting intentional typographic symbols in prose, [Character Viewer](https://tapnoise.com/blog/emoji-symbols-keyboard-shortcut-mac/) lets you choose them explicitly.

Source: [Apple: replace text and punctuation](https://support.apple.com/guide/mac-help/replace-text-punctuation-documents-mac-mh35735/mac).

**About the author**

Rudra Satani makes TapNoise. Spotted a mistake? Email [support@tapnoise.com](mailto:support@tapnoise.com?subject=Blog%20correction), or reach out at [@rudraxx13](https://x.com/rudraxx13).

## Related guides

- [**Hold ⌘ to see the shortcut cheat sheet**Hold Command by itself for a second to see the shortcuts of the app in front. The cheat sheet reads only that app's menus, and needs Accessibility.](https://tapnoise.com/docs/shortcut-cheat-sheet/)

## Hear TapNoise on your Mac

Every sound is made by TapNoise itself. Try the sounds on the homepage first, then download the app.

[Download TapNoise](https://tapnoise.com/download/) · [Try the sounds](https://tapnoise.com/#try)

## More from the blog

- [**How to type accented letters on a Mac keyboard**Use the press-and-hold accent menu or your keyboard layout's modifier combinations, and check the current input source when an accent is missing.](https://tapnoise.com/blog/type-accented-letters-mac/)

- [**How to use F1–F12 instead of media keys on a Mac**Understand Fn and Globe key behaviour, use standard function keys in apps and avoid confusing media actions with an editor's F-key shortcuts.](https://tapnoise.com/blog/use-function-keys-f1-f12-mac/)

- [**How to use Keyboard Viewer to find Mac symbols**Show the current keyboard layout on screen, reveal Option and Shift characters, and check symbols before changing your Mac's input source.](https://tapnoise.com/blog/use-keyboard-viewer-mac/)

- [**How typing speed in WPM is calculated, and what it misses**Understand the five-character convention for words per minute, compare practice tests fairly and interpret TapNoise's live speed as an activity estimate.](https://tapnoise.com/blog/typing-speed-wpm-how-calculated/)

Source: https://tapnoise.com/blog/turn-off-smart-quotes-mac/
