Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode9 how to get right click > Structure > Reindent back?

I see that XCode9 is messing up the indentation of my code. Before this could be fixed with right click > structure > re-indent. How do I get equivalent behavior in XCode9?

like image 815
Alex Stone Avatar asked Dec 08 '22 16:12

Alex Stone


1 Answers

This won't get the Structure->Re-Indent context menu back but might be useful.

There's a ^I (ctrl + i) shortcut for that, which re-indents selection.

If you don't want to use Key Bindings, the command is available using the menu:

Editor->Structure->Re-Indent

Note that default combination looks very much alike ^| (ctrl + shift + \) on Key Binding pane . I've been banging this combo for some time and even redefined the shortcut to ctrl+shift+\ before figuring out the correct one: enter image description here

like image 52
Anton Avatar answered Jan 01 '23 10:01

Anton