Select some text in Xcode and type an open parentheses or a curly brace or a quotation mark. Xcode embeds the selected text in matching parentheses or quotation marks.