14

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?

Mark A. Donohoe
  • 28,442
  • 25
  • 137
  • 286
  • Try AppCode instead. I'm quite serious, not trolling. – Jon Reid Mar 01 '18 at 06:44
  • I keep playing around with the demos, but never seriously. Mostly just to see what it looks like. However, you're not the first to say that at all. Perhaps I should take a deeper look. – Mark A. Donohoe Mar 01 '18 at 17:04

2 Answers2

14

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

defaults write com.apple.dt.Xcode CodeFoldingAnimationSpeed -float 0.25
dimpiax
  • 12,093
  • 5
  • 62
  • 45
TheCodeTalker
  • 685
  • 6
  • 14
  • 1
    Bingo! Except... it looks like this is the number of seconds. You should change it to -float and 0.25 which is nice and fast, but you can still see it folding. – Mark A. Donohoe Sep 29 '19 at 19:50
  • 1
    defaults write http://com.apple.dt.Xcode CodeFoldingAnimationSpeed -int 0 make it zero u will not seeing any animation. – TheCodeTalker Sep 30 '19 at 07:29
  • Yes, but again, the value is a float, not an int. Granted, for the value '0' (zero) it doesn't make any difference, but for people coming here for information, they need to know it's a float. You should consider updating your answer to reflect that. (That and using 20 is reeeaaallllyyyyy looooonnnngggggg!) :) – Mark A. Donohoe Oct 07 '19 at 04:24
5

System Preferences > Accessibility > Display > Reduce motion

Mike Swingler
  • 279
  • 1
  • 2
  • 3
    This worked, but I didn't really want to disable everything system-wide, just in Xcode. That said, maybe there's a happy medium: Is there a master duration for system animations? – Mark A. Donohoe Feb 26 '18 at 21:11