Changing colours and fonts in WebStorm 2016.1 - macos

I have just downloaded WebStorm 2016.1 for Mac OS X. I would like to configure my editor fonts and colorus.
I understand that you must save the scheme before it becomes editable. This I have done:
but the options still remain unavailable.
Is this a limitation of the trial or something? What have I missed? I have applied the style, and have even closed down WebStorm and re-opened.

If certain style (e.g. "Doc comment" on your screenshot) has Use inherited attributes option checked .. then it re-uses colors from parent option (which is displayed just below it).
The solution is simple:
either edit parent style
or uncheck that Use inherited attributes option and edit your colors here
P.S.
Trial version has NO limitation in functionality.

Related

How can I restore Chrome Customize fonts to the default?

(I'm using a MacBook Pro (16-inch, 2019) Monterey v12.5)
I was trying to test different font settings and I came up messing my "Fixed-width font".
The default is "Custom" and once I changed it to other fonts it just disappears in the drop-down list.
I figured out "Custom" font should be Courier New with bold font weight.
I have been googling to see if there is any way to restore it to the default but not quite getting the answer.
Reinstalling Chrome might be one of the methods but it takes me long time to restore other settings. I would like to know if there is other way before trying reinstall.
default fixed-width font
I just found the way to solve my own problem.
What I've done is:
"Inspect" the drop-down list option
Change the element DOM "Courier New" -> "Courier"
Select any other font once and change back to Courier (that has been just changed from "Courier")
The original font should come back.
Hope this help someone who has the same problem as mine.

PhpStorm - Change theme for remote server view

In PhpStorm is there a way to theme remote connection files differently to local project files?
When open they are very similar looking to each other and sometimes it's easy to work on 1 view when I am meant to be working on the other!
Unfortunately you cannot change editor background or stuff like that to make it more visible in actual editor area.
But ... from what I see IDE already uses different background colour for the editor tab (the tab itself). It's not that visible there on your screenshot because you are using Darcula GUI theme where you do not see much contrast in colours used.
You can change that at Settings/Preferences | Appearance & Behavior | File Colors: choose more suitable for you colour for "Non-Project Files" scope (e.g. use bright red or blue -- whatever suits your theme and your preferences). Also double check that Use in Editor Tabs option is checked (should be already).
Please note that this will apply to any non-project files (i.e. even excluded or outside of the project root).
Another thing: in recent IDE versions (2018.2 is the latest stable ATM) the file edited remotely will have additional bar at the top of the editor with Compare / Revert | Upload and possibly other actions .. so it should be even more noticeable that you're editing remote file.

How to change FileMerge's font/settings/preferences?

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.

What is the name of this colour scheme element?

I have an annoying problem with Visual Studio highlighting. I installed my favourite colourscheme (zenburn 2010), and I have found that when I'm in debug mode, this will happen when my application is paused:
I have run through the hundred or so colours in the settings window, but I am unable to locate the setting that will affect this background colour. It's not exactly a show-stopper, but I'd still really like to know how to solve this.
I have resharper installed in case that affects anything. I can't see how it would though.
I think you want either the Collapsible Region element, or the Selected Text element
Changing the background color of the Read-Only Region element solved the issue for me. (See this article for more detail.)

Visual Studio colors not loaded correctly

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.

Resources