Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you speed up Xcode's ‘folding’ animations in the code editor?

The title really says the entire question. I’m trying to find a way to speed up the “folding” animations when doing rename-refactoring.

While I don’t mind the animations themselves per se, I do tend to get frustrated that they take as long as they do, especially when doing multiple renames.

So... does anyone know of a preference or setting that would allow me to tweak/disable this feature?

like image 384
Mark A. Donohoe Avatar asked Feb 23 '18 00:02

Mark A. Donohoe


People also ask

What is code folding Xcode?

Code or text folding, or less commonly holophrasting, is a feature of some graphical user interfaces that allows the user to selectively hide ("fold") or display ("unfold") parts of a document. This allows the user to manage large amounts of text while viewing only those subsections that are currently of interest.

How to collapse code Xcode?

Keep (hold) ⌘ (command) button in pressed condition and click on highlighted area. It will enable quick menu popover window with Fold option. Select Fold from menu list. It will fold your code and shows 3 dots, folding/covering entire block.


2 Answers

hey you can use this command in terminal and restart Xcode.

defaults write com.apple.dt.Xcode CodeFoldingAnimationSpeed -float 0.25
like image 193
TheCodeTalker Avatar answered Oct 21 '22 11:10

TheCodeTalker


System Preferences > Accessibility > Display > Reduce motion

like image 23
Mike Swingler Avatar answered Oct 21 '22 13:10

Mike Swingler