Key combination for bending code in Xcode 9

Code folding does not work with Shift + Alt + Cmd + <- left key bindings in Xcode 9 . Does anyone have the same issue with Xcode 9?

+7
keyboard-shortcuts xcode9-beta code-folding
source share
4 answers

Code folding is a long list of things that are not yet implemented in the new editor.

UPD:

Now after the release of Xcode 9, code folding now works with the former shortcut (Shift + Alt + Cmd + left arrow)

Note. To collapse the scope, press Alt + Cmd + left arrow.

+5
source share

Code warehousing was disabled in Xcode 9 beta 1, which is now working, in Xcode 9 Beta5 according to the beta note: Solved in Xcode 9 beta 5 - IDE

Here's how:

  • Press and hold the ⌘ (command) button on the keyboard and move / hover your mouse over any (start or end) curly braces. It will automatically highlight the block area.
  • Hold (hold) ⌘ (command) and press the highlighted area. This will allow you to quickly open the menu window with the Fold option.
  • Select Fold from the menu list. It will add your code and display 3 points, folding / closing the entire block.
  • Now, to expand your code block again, release the ⌘ (command) button and click on 3 points, folding the block.

For convenience, see this snapshot:

enter image description here


All manual cuts also work.

 Fold βŒ₯ ⌘ ← option + command + left arrow Unfold βŒ₯ ⌘ β†’ option + command + right arrow Unfold All βŒ₯ U option + U Fold Methods & Functions βŒ₯ ⌘ ↑ option + command + up arrow Unfold Methods & Functions βŒ₯ ⌘ ↓ option + command + down arrow Fold Comment Blocks βŒƒ ⇧ ⌘ ↑ control + shift + command + up Unfold Comment Blocks βŒƒ ⇧ ⌘ ↓ control + shift + command + down Focus Follows Selection βŒƒ βŒ₯ ⌘ F control + option + command + F Fold All ⌘ βŒ₯ ⇧ ← command + option + shift + left Unfold All ⌘ βŒ₯ ⇧ β†’ command + option + shift + left 


Options for adding code from the Xcode menu :

Menubar β†’ Editor β†’ Code Fold β†’ β€œHere is a list of code folding options”

Here is a snapshot of ref:

enter image description here

Same parameters from Xcode abbreviated list :

Menubar β†’ Xcode β†’ Preferences β†’ Key Bindings β†’ β€œHere is a list of code keys with short keys”

enter image description here

+7
source share

This is a missing slipping tape that really makes things incredibly difficult. I would not β€œupdate” if I knew.

+4
source share

In accordance with the release notes. Code folding is not supported in Xcode 9.0.

The source editor in this beta version of Xcode 9.0 does not support code folding. (29396003) .

enter image description here

As with all beta versions, there are many open issues that are well documented in beta versions.

+1
source share

All Articles