When you press &shortcut:RenameElement; to rename an element, you can click icons near the element and select whether you want to rename it in comments and strings or all the text occurrences (for Objective-C).

Options for the rename refactoring