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.
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.
Thanks.
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
The file itself is plaintext XML. Even though it's pretty straightforward, I recommend backing it up first.
For example, if you want to increase the font size from "11.0" to "14.0", just do a find and replace.
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.
The other answers didn't work for me (as I didn't have any theme files), but the following did:
Open FileMerge
Go to Preferences
Click the 'Set...' button under 'Font'
Click the top of the Fonts window so that it gets focus (this is the key step - if the Fonts window doesn't get focus the changes won't stick). If the Fonts window has focus, you should see your changes reflected in the FileMerge Preferences window live as you make them.
The solution was to delete the folder ~/Library/Developer/FileMerge. It did not solve the font problem (typescript files rendered with proportional font of different size, which causes problems for long files).
For me also the font panel settings have no effect at all. Same problem in XCode "Font & Colors" preferences.
For your colors problem, I would try quitting FileMerge, archiving the preference file, and relaunching:
mv ~/Library/Preferences/com.apple.FileMerge.plist ~/Library/Preferences/com.apple.FileMerge.plist.backup
FileMerge has a XCFontAndColorCurrentTheme setting:
defaults read com.apple.FileMerge XCFontAndColorCurrentTheme
I've tried setting that:
defaults write com.apple.FileMerge XCFontAndColorCurrentTheme "Presentation.xccolortheme"
But I don't see a difference. So maybe Apple is in the middle of revising this feature.
In addition to the answers already given, if those do not work, check that the files you are comparing are plain text and not rich text. If they're rich text, file merge will get the font attributes from the files themselves, hence you will not be able to affect the size of the font. You could instead open the files in a text editor and either convert them to plain text, or increase the size of the font manually.
None of this helped in my case on Big Sur, but this did the job. Requires sudo throughout so be careful.
Make a copy of a theme within the xcode bundle:
sudo cp "/Applications/Xcode.app/Contents/SharedFrameworks/DVTUserInterfaceKit.framework/Versions/A/Resources/FontAndColorThemes/Default (Light).xccolortheme" "/Applications/Xcode.app/Contents/SharedFrameworks/DVTUserInterfaceKit.framework/Versions/A/Resources/FontAndColorThemes/fileComp.xccolortheme"
Edit (in xcode for example) ~/Library/Preferences/com.apple.FileMerge.plist. Select the new theme by setting the XCFontAndColorCurrentTheme value to fileComp.xccolortheme
Edit the font values in new theme file fileComp.xccolortheme. Quit and restart FileMerge each time to apply.
Related
When I change the font in WinDbg, the text disappears. I have to restart WinDbg to see text again, but then, the font setting is gone.
Before:
After changing the Font to Lucida Console 14:
Version at the time of writing: WinDbg 10.0.10586.567
There seem to be 2 questions:
How can I get the color back without restarting
How do I save the font in the workspace
Get the color back
This only happens in customized workspaces like yours. The text is not really gone but its color seems to be reset to black. The text is still there and can be selected:
To partially fix this, you can go to the View/Options menu, select the text color entry (no need to change) and click Ok.
Doing so might be needed twice:
when the focus is in the output window
when the focus is in the command prompt
Doing that will not affect the readability of existing text but the output of any new commands will be displayed in green color again.
Store the font in the Workspace
WinDbg knows several workspaces and when you chose "Save Workspace" it probably saved into a very specific one (specific to an executable or a crash dump).
To have the font settings always, it needs to be saved in the "base" Workspace. To do that:
open WinDbg without running a program and without opening a dump file
change the font
set the color again
save the Workspace (File / Save Workspace)
In some versions of WinDbg, e.g. 6.3.9600, this does not seem to be enough. In that case,
open WinDbg without running a program and without opening a dump file
change the font
set the color again
set the window to restored size (i.e. not maximized)
move the window to a different position
save the Workspace (File / Save Workspace)
maximize the window (if you want it maximized)
save the Workspace again (if you want it maximized)
While working in RStudio, I accidentally changed the font. (It is changed in my console,the environment tab, everywhere.) I can't seem to figure out how to change in back to the default font. How do you change the font back in an R script?
I guess you may have already solved this for the time being, but I will answer for documentation purposes:
In order to change the font of the R's console and the font used in your scripts, you have to click on the Tools\Global options... menu and then change to Appearance tab (see screenshot below)
I have the hardest time navigating the file structure in Xcode projects. One feature that I feel strongly would help me is the ability to add custom highlight colors to different filenames in Xcode's project navigator.
I imagine it's possible since Xcode will highlight the text area of the current file you're working on, and it will also change the font color to be red if a file is not detected in your project. (Also a "Favorites" or "Recent Items" section would be a.w.e.s.o.m.e)
Apple used to allow for folder and file colors in their finder. Unfortunately, now they only allow color labels in the form of little colored dots next to a file, instead of actually changing the text area color itself. I loved this feature, it helped me find what I needed and it significantly decreased the time I spent navigating to find files.
Does this exist/ is there a plugin/ where are these preferences set/ is there a hacky workaround to implement this? I'm willing to go any route.
Thanks in advance!
Trying to configure a custom caret color..Here is what I have done so far but had no result in a successful output..
I have dowloaded the PackageResourceViewer and gone into my theme and changed the <key>caret</key> <string>#F8F8F0</string> to my own custom hex color.
Once this is done I then overwrite the current theme by choosing save as and restarting Sublime Text. After restart, I see no change made to the caret...Hmmm
I have also followed this post on
How do I edit the Solarized (Light) theme in Sublime Text 3
Any one have and suggestions? I would greatly appreciate your help.
When you say you "gone into your theme", did you open or extract? By open, you are essentially viewing a read-only version, so saving it doesn't do anything really.
If you do extract it, try saving it into your user folder, then make sure you choose it via the preferences menu
I use a custom color scheme in Visual Studio (black background, gray text, etc.). There a few settings that refuse to change, however. For example, when cursoring through the markup for an aspx page, the current tag defaults to black text, which doesn't work well on my black background. I've previously changed the appropriate setting to a "visible" color. In fact, to fix it, all I have to do is open the Options window, check and uncheck the Bold setting on Plain Text and hit OK, and now all my chosen settings are properly loaded. If I open a new session though, I have to go through these steps again. There are only a few settings where I notice this behavior (the Read-Only Region is another one), but it's annoying to have to do a dummy option change to get them to kick in. Has anyone seen this behavior before, and does anyone have a fix/workaround?
UPDATE: Found an interesting fix. I still don't know what the root cause is (probably some corruption as #sliderhouserules suggessts), but I've got a quicker way to fix it than using Tools | Options | Fonts and Colors. I simply exported my current color settings and created a macro to load them in:
Public Sub ImportColors()
DTE.ExecuteCommand("Tools.ImportandExportSettings", "-import:""C:\Documents and Settings\gregf\My Documents\Visual Studio 2008\Settings\FontsAnColors_Exported-2008-12-05.vssettings""")
End Sub
I then mapped that macro to a button on my toolbar. Now I have a one-click fix whenever my colors go awry. Not ideal, but much less painful now.
Sounds to me like you may have some corruption in your VS install or something (IE you need to reinstall VS). This doesn't sound like a bug, and you'd be fishing in the dark trying to repair your registry or whatever config files are involved in setting and storing these options for VS.