3 ms·
An Xcode tip which I didn't discover until recently was that if you hover over a variable for a moment, a small down arrow will appear next to it. If you click
by cellularmitosis 11y ago
An Xcode tip which I didn't discover until recently was that if you hover over a variable for a moment, a small down arrow will appear next to it. If you click on that arrow, you'll get a menu which includes "Edit all in scope". This provides very basic variable renaming.
- micampe 11y agoWithout using the mouse and hovering you can press Cmd-Ctrl-E.
- seivan 11y agoBe careful with that, there is a bug in the editor itself that somehow inserts your new name between the letters of the word (variable) you're changing. Not sure if it's the same bug, but it's been there pre-Swift. lblName -> lbllblUserNameName