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.
Related
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.
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.
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!
Does anyone know how to change the background color, font size, and other appearance-based settings in Notepad++? The default is white but I am trying to change it into a dark gray or something else.
Go to Settings -> Style Configurator
Select Theme: Choose whichever you like best (the top two are easiest to read by most people's preference)
You may need admin access to do it on your system.
Create a folder 'themes' in the Notepad++ installation folder i.e. C:\Program Files (x86)\Notepad++
Search or visit pages like http://timtrott.co.uk/notepad-colour-schemes/ to download the favourite theme. It will be an XML file.
Note: I prefer Neon any day.
Download the themes from the site and drag them to the themes folder.
Note: I was unable to copy-paste or create new files in 'themes' folder so I used drag and that worked.
Follow the steps provided by #triforceofcourage to select the new theme in Notepad++ preferences.
From version v8 released 2021-06-07 Notepad++ has additional Dark Mode option.
To enable it go to Settings -> Preferences -> Enable dark mode
Effect:
Next step:
Go to Settings -> Style Configurator
Select Theme: Choose whichever you like best (over half of styles here are dark, but each is different).
Hint: click on theme list and use keyboard arrows 🔼 and 🔽 to switch between themes and test all of them.
Effect after all steps (Obsydian theme here):
There seems to have been an update some time in the past 3 years which changes the location of where to place themes in order to get them working.
Previosuly, themes were located in the Notepad++ installation folder. Now they are located in AppData:
C:\Users\YOUR_USER\AppData\Roaming\Notepad++\themes
My answer is an update to #Amit-IO's answer about manually copying the themes.
In Explorer, browse to: %AppData%\Notepad++.
If a folder called themes does not exist, create it.
Download your favourite theme from wherever (see Amit-IO's answer for a good list) and save it to %AppData%\Notepad++\themes.
Restart Notepad++ and then use Settings -> Style Configurator. The new theme(s) will appear in the list.
If anyone wants to enable dark mode, you may follow the below steps
Open your Notepad++, and select “Settings” on the menu bar, and choose “Style configurator”.
Select theme “Obsidian” (you can choose other dark themes)
Click on Save&Colse
Notepad++ changed in the past couple of years, and it requires a few extra steps to set up a dark theme.
The answer by Amit-IO is good, but the example theme that is needed has stopped being maintained. The DraculaTheme is active. Just download the XML and put it in a themes folder. You may need Admin access in Windows.
C:\Users\YOUR_USER\AppData\Roaming\Notepad++\themes
https://draculatheme.com/notepad-plus-plus
I have just installed the latest version Notepad++ website (currently it is v8.1) which provides an explicit dark mode setting.
Go to "Setting" -> "Preferences..." -> "Dark Mode" -> check the "Enable dark mode" tick box. The editor might need to be restarted to take effect completely.
https://notepad-plus-plus.org/downloads/
If you are not able to add the theme , a workaround is that go to
USER/Appdata/LocalRoaming/Notepad++
make sure you save whatever the data is there in stylers.xml as back up before
There you will find a stylers.xml you can edit that only , with any xml format you need.
( https://raw.githubusercontent.com/dracula/notepad-plus-plus/master/Dracula.xml )
Sometimes even after adding the file , notepadd++ doesn't pick up the theme
To revert back just edit back stylers.xml with the backup file.
After restarting it , you can see notepad ++ has taken that style as default
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.