Xcode Swift code folding/collapse
问题 I know we can use "Shift + Alt + Cmd + Left" to fold/collapse swift code in Xcode, but can anyone tell me how to fold/collapse for functions only ? Not properties ? Or any alternative way ? The default folding method does the job, but actually also hide very important information from us...... This is what I wanted! 回答1: Updates in Xcode 10: Xcode 10 has increased support for code folding, including: A new code folding ribbon showing all of the multi-line foldable blocks of code in the editor