Xcode 4: key binding for "Focus code blocks on hover"

Solution 1:

  • Go to Settings > Keybindings and search for focus.

  • Then set your desired keybinding under Code Folding > Focus Follows Selection.

enter image description here