I would like to change the color on all the found instances (when you use find) of the word that have been found. I noticed that the highlightBackground key just changes the first instance. Is there a way to change the highlight color of all the found instances?
The following examples are from the Neon Color Scheme (full disclosure - I'm its designer):
So I'm searching though my Package Control.sublime-settings file trying to find all of my packages with HTML (case-insensitive) in their name. I open up the Find dialog (CtrlF on Windows/Linux, ⌘F on OS X) and type HTML into the search box, after unchecking the regex, case-sensitive, and whole-word options. The following appears:
The yellow background behind the first found item on Line 22 is themed using the findHighlight setting, while the blue font (foreground) is themed using findHighlightForeground. I can hit F3 (Win/Lin, ⌘G on OS X) to scroll through each match.
However, say I want a multi-selection so I can change them all at once. I hit Find All (AltEnter, ⌥Enter on OS X) and the window now looks like so:
This is the same coloring used when you manually select text. The bright blue background is themed using the selection setting, while the bright green border around it is themed using selectionBorder. The text color (foreground) is the same as defined elsewhere in the color scheme for that particular scope. Defining selectionForeground doesn't seem to have any effect.
The full settings dict for Neon looks like this:
<dict>
<key>settings</key>
<dict>
<key>activeGuide</key>
<string>#FF0080</string>
<key>background</key>
<string>#000000</string>
<key>caret</key>
<string>#FFFFFF</string>
<key>findHighlight</key>
<string>#F2FF06</string>
<key>findHighlightForeground</key>
<string>#1515FF</string>
<key>foreground</key>
<string>#FFFFFF</string>
<key>guide</key>
<string>#6F6F6F</string>
<key>inactiveSelection</key>
<string>#353576</string>
<!-- invisibles doesn't seem to work for me -->
<key>invisibles</key>
<string>#06FF05</string>
<key>lineHighlight</key>
<string>#2D2D2D</string>
<key>selection</key>
<string>#0205FF</string>
<key>selectionBorder</key>
<string>#06FF05</string>
<key>stackGuide</key>
<string>#06FF05</string>
</dict>
</dict>
I hope this helps!
Related
I am looking for a keyboard shortcut to scroll my current window within Xcode to the top of the page. Similar to Emacs, I know that ^L will bring current selected line to the center. However, in Emacs, if I press it again, it will bring that line to the top.
I am looking for similar behavior in Xcode, I have searched and tried multiple custom Key Bindings, but non seem to have what I am looking for.
Any ideas on how to accomplish this?
I have found a semi-solution that works for scrolling up a number of lines modifying the IDETextKeyBindingSet.plist file in the Xcode Resources directory. If you know how many lines half of your screen is, you could use this with ^ L and use to keyboard shortcuts to accomplish what I am looking for.
I have added the following to my file and created to custom keybindings to scroll up 6 lines up or down.
<key>Customized</key>
<dict>
<key>Scroll Up 6 Lines</key>
<string>scrollLineUp:, scrollLineUp:, scrollLineUp:, scrollLineUp:, scrollLineUp:, scrollLineUp:</string>
<key>Scroll Down 6 Lines</key>
<string>scrollLineDown:, scrollLineDown:, scrollLineDown:, scrollLineDown:, scrollLineDown:, scrollLineDown:</string>
</dict>
The file can be found at /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/IDETextKeyBindingSet.plist and you can add it before the last </dict> tag.
Another option would be to scroll down on the page beyond the selected line and then press one of the arrow keys to bring it to the top.
I'd like to change the general background color of CLion (that is, outside of where you write code), but I have been unable to find a solution neither in the IDE itself nor online.
However, changing these colors should be possible, as switching the color theme does change them.
Here is an image of what I mean, I've marked the respective areas I would like to change the color of with a bright pink circled x:
Any help on where I could find these settings would be much appreciated.
EDIT: I already know where to change Fonts, text colors and the like, but I am looking specifically for the marked areas, changes for which do not appear under any of the Color Scheme Options.
You cannot customize the colors of the main interface except for choosing the Default and Darcula themes in Appearance and Behavior - Appearance. What your and the other answer's screenshot shows are the EDITOR color scheme settings.
You can set a background image for the whole IDE in general in that settings tab, though. Make it completely opaque, the color you like, and that might do it.
To configure colors and fonts
Press Ctrl+Alt+S or choose File | Settings (for Windows and Linux) or CLion | Preferences (for macOS) from the main menu, and then go to Editor | Font.
Select the desired scheme from the Scheme name drop-down list.
Under the Color Scheme node, define the font families used in the editor and in the console. When you open the Font page, or Console Fonts under the Color Scheme node, CLion displays the Editor Font area where you can configure the primary and secondary fonts, their size and line spacing.
Under the Color Scheme node, open the corresponding pages to configure specific color preferences for the supported languages and CLion components.
To navigate to the relevant Colors & Fonts settings for the symbol at the caret
Call Help | Find Action from the main menu (or press Ctrl+Shift+A) and choose Jump to Colors and Fonts:
Explore the relevant section of the Colors & Fonts settings for the symbol under the caret:
If you want to know more about configurations : Configuring Colors and Fonts
I'm using the Visual Studio Color Theme Editor extension to help darken up VS2010, found a nice theme that I like however I've got one big problem with it.
On the Property sheet, at the bottom where it says the name of the property and a sort description this theme I'm using is impossible to read; Black on a dark grey background. Unfortunately, I don't know what this specific segment of the Property window is called to change it.
You can not change the text color with the extension.
To figure that out, copy FFFFFF, select all line in the theme editor configuration pane (with Shift), press Ctrl+V (yes, you can do that, pretty neat !) and hit apply : everything that can be themed will then appear white. The text however, will stay black.
You can hopefully change the background color : It's called ToolWindowBackground. It will affect all tool windows of course. There's no specific item for this window in particular.
I'm using Sublime Text 2 and the Color Scheme is iPlastic. How can i change the followings:
Modified/Edited Tab Bar FONT COLOR (Current is 'red')
Highlighting Current Line (Currently i do not have highlighting for current line)
Change the background color of CODE AREA (White-area in the picture)
I showed as the Screenshot below. I believe/hope i need to modify the iPlastic.tmTheme file. But for those certain things above, i don't know what tags to add.
Thanks!
To change current tabs font color, you have to find "class": "tab_label" elements in your .sublime-theme, and modify or add an "fg". Something like this:
{
"class": "tab_label",
"parents": [{"class": "tab_control", "attributes": ["selected"]}],
"fg": [255, 0, 0]
}
(If you didn't set any custom theme, the default is Packages/Theme - Default/Default.sublime-theme).
To highlight current line, you have to set
"highlight_line": true
in your Settings - User.
To change the background color of code area, you have to add something like this:
<dict>
<key>name</key>
<string>Source base background</string>
<key>scope</key>
<string>text,source</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#FFFFFF</string>
</dict>
</dict>
to your .tmTheme color scheme. Of course you should change #FFFFFF color to whatever you need.
The color seems to be linked to the foreground in themes. I assume it's using less alpha. Is there a way to control this?
There's now a Sublime plugin for this.
Install the HighlightWhitespaces plugin
Add the following color settings (tailored to your preference) to your color_scheme file. This file ends in .tmTheme and the path can be found by looking at the value for the key "color_scheme" in your settings file.
<dict>
<key>name</key>
<string>highlight.whitespace</string>
<key>scope</key>
<string>highlight.whitespace</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#020202</string>
<key>foreground</key>
<string>#805050</string>
</dict>
</dict>
Specify that this color should be used by adding the following to the user settings of the HighlightWhitespaces plugin:
{
"highlight_whitespaces_space_highlight_scope_name": "highlight.whitespace",
"highlight_whitespaces_tab_highlight_scope_name": "highlight.whitespace",
"highlight_whitespaces_eol_highlight_scope_name": "highlight.whitespace",
"highlight_whitespaces_mixed_highlight_scope_name": "highlight.whitespace"
}
Relax and enjoy :-)
You may want to try installing PersistentRegexHighlight from Package Control and then use a blank-character regex like [\x20 ] to add a specific color or color scope.
You'd want to combine this with drawWhiteSpace: "all", in Sublime user prefs.
You can change the tab underline alpha by changing the foreground alpha.
To change the color of spaces requires changes to every syntax file.
A few years later, I was struggling with this in Sublime Text 3 build 3083. I hope this helps anyone. In addition to Chris Like's suggestion to install PersistentRegexHighlight and setting "draw_white_space": "all" in the user preferences and the pattern to one or more occurances of tabs and spaces, i.e. [ \t]+ in the PersistentRegexHighlight user settings, i had to also also set "color_scope": "highlight.whitespace" and add the following dict to the theme along with the other ones in the settings array:
<dict>
<key>name</key>
<string>highlight.whitespace</string>
<key>scope</key>
<string>highlight.whitespace</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#020202</string>
<key>foreground</key>
<string>#805050</string>
</dict>
</dict>
which by the way oddly only outlines in red if the background is set to black, i.e #000000
Note that this method does not require editing any syntax files.