如何更改FileMerge的字体/设置/首选项? [英] How to change FileMerge's font/settings/preferences?

查看:186
本文介绍了如何更改FileMerge的字体/设置/首选项?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一段时间以来,我无法更改FileMerge的字体.然后突然开始对无法识别的文件(如打字稿源文件)使用类似Helvetica的字体(无衬线字体,可变宽度).可以通过将字体更改为... Helvetica暂时将其更改为monaco.是的,这很奇怪.

For some time now, I can't change FileMerge's font. Then it suddenly started using a Helvetica-like font (sans serif, variable width) for files it doesn't recognize (like typescript source files). That could be changed temporarily to monaco by changing the font to ... Helvetica. Yes, it's very weird.

但是现在,它以白色显示所有文本,由于背景不同,只有更改的部分可见,我无法更改.我试图找到所有的首选项文件,并重新安装了Xcode,但是文本仍然是白色的.

But now, it shows all text white on white, and only the changed section is visible because of the different background and I cannot change it. I've tried to locate all the pref files, and reinstalled Xcode, but the text remains white on white.

有人知道如何更改它,或者在哪个(首选)文件中更改?

Does anyone know how to change that, or where which (pref) file to change?

这可能是写权限问题,因为我是通过非管理员帐户运行的.

It could be a write permission issue, since I'm running it from a non-admin account.

谢谢.

推荐答案

此功能已完全中断,因此您必须手动编辑主题文件.它位于这里:

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

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

文件本身是纯文本XML.即使很简单,我还是建议先备份它.

The file itself is plaintext XML. Even though it's pretty straightforward, I recommend backing it up first.

例如,如果要将字体大小从"11.0"增加到"14.0",只需查找并替换.

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

您可能很想从Xcode复制主题.不要打扰字体大小似乎无效,并且FileMerge期望背景为白色,因此较暗的主题将无法正常工作.

You might be tempted to copy in a theme from Xcode. Don't bother. The font sizes don't appear to take effect, and FileMerge expects a white background, so darker themes won't work correctly.

这篇关于如何更改FileMerge的字体/设置/首选项?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆