How to change the font / settings / preferences of FileMerge?

For some time I can’t change the font of FileMerge. Then he suddenly started using the Helvetica font (sans serif, variable width) for files that he does not recognize (for example, typescript source files). This can be temporarily changed in Monaco by changing the font to ... Helvetica. Yes, this is very strange.

But now it shows all the text white on white, and only the changed section is visible due to a different background, and I can not change it. I tried to find all the pref files and reinstalled Xcode, but the text remains white on white.

Does anyone know how to change this or where to change the (pref) file?

This may be a write permission issue, as I run it from an account other than admin.

Thanks.

+9
source share
4 answers

This feature is completely broken, so you need to edit the theme file manually. It is located here:

~/Library/Developer/FileMerge/UserData/FontAndColorThemes/Default.xccolortheme

The file itself is plaintext XML. Although this is fairly simple, I recommend that you first back up.

For example, if you want to increase the font size from "11.0" to "14.0", just find and replace.

You may be tempted to copy in the theme from Xcode. Do not worry. The font size does not take effect, and FileMerge expects a white background, so darker themes will not work correctly.

+9
source

~/Library/Developer/FileMerge. (typescript , , ).

+2

. XCode " ".

FileMerge, :

mv ~/Library/Preferences/com.apple.FileMerge.plist ~/Library/Preferences/com.apple.FileMerge.plist.backup

FileMerge XCFontAndColorCurrentTheme:

defaults read com.apple.FileMerge XCFontAndColorCurrentTheme

, :

defaults write com.apple.FileMerge XCFontAndColorCurrentTheme "Presentation.xccolortheme"

. , , Apple .

0

( ), :

  1. FileMerge
  2. "..." ""
  3. Click on the top of the Fonts window to get focus (this is a key step - if the Fonts window is not focused, the changes will not be saved). If the Fonts window has focus, you should see how your changes are reflected in the FileMerge Settings window in real time as you make them.
0
source

All Articles