Skip to content

Add defaults section #4

@armcknight

Description

@armcknight

Add a new section for modifying Xcode OS defaults and add the example from https://mjtsai.com/blog/2019/09/16/faster-xcode-rename-refactoring/ and https://mjtsai.com/blog/2016/06/20/disabling-xcode-8-font-smoothing/:

defaults write com.apple.dt.Xcode CodeFoldingAnimationSpeed -int 0 # for e.g. the refactor->rename workflow animation
defaults write com.apple.dt.Xcode NSFontDefaultScreenFontSubstitutionEnabled -bool YES # disable font smoothing

Also from https://macos-defaults.com/xcode/showbuildoperationduration.html and https://macos-defaults.com/xcode/ideadditionalcounterpartsuffixes.html:

defaults write com.apple.dt.Xcode IDEAdditionalCounterpartSuffixes -array-add "ViewModel" "View"
defaults write com.apple.dt.Xcode IDEAdditionalCounterpartSuffixes -array-add "Router" "Interactor" "Builder"

defaults write com.apple.dt.Xcode ShowBuildOperationDuration -bool true

The above may require starting a new Xcode process with killall Xcode

and from

defaults write com.apple.dt.Xcode IDEDisableStateRestoration -bool YES
defaults write com.apple.dt.Xcode ApplePersistenceIgnoreState -bool YES
defaults write com.apple.dt.Xcode IDEShowPrebuildLogs -bool YES

The last two blocks' sources were discovered by https://github.com/Xcode-Tips/xcode-tips.github.io

From https://twitter.com/onmyway133/status/1380084248829251586?s=20:

defaults write http://com.apple.dt.Xcode ShowDVTDebugMenu -bool YES
sudo touch /Applications/Xcode.app/Contents/Developer/AppleInternal/Library/Xcode/AppleInternal.plist

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions