<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSTextView/smartInsertDeleteEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSTextView(py)smartInsertDeleteEnabled"
  },
  "title" : "smartInsertDeleteEnabled"
}
-->

# smartInsertDeleteEnabled

A Boolean value that controls whether the receiver inserts or deletes space around selected words so as to preserve proper spacing and punctuation.

```
var smartInsertDeleteEnabled: Bool { get set }
```

## Discussion

<doc://com.apple.documentation/documentation/Swift/true> if the receiver should insert or delete space around selected words so as to preserve proper spacing and punctuation, <doc://com.apple.documentation/documentation/Swift/false> if it should insert and delete exactly what’s selected.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)