Im trying to change the cursor color in sublime text. Im running windows in a VM on my mac.
In Preferences.sublime-settings ive added the following but it hasn't done anything:
// Change caret colour?
"caret_color": "#FF0000",
"caret": "#FF0000",
This is similar to this question but the answer there doenst work for me: Change the color of the cursor in Sublime Text
Best Answer
The caret color is defined in the color scheme you are using. Since you have Sublime Text 2, changing the color scheme is quite straightforward. First, open your user preferences and check the value of
"color_scheme"
to get the path to the scheme you're using. If you haven't set it there, the default value isPackages/Color Scheme - Default/Monokai.tmTheme
. Next, selectPreferences -> Browse Packages...
to open thePackages
folder in your file system explorer. Browse to the location of the color scheme and open the corresponding.tmTheme
file in Sublime, using XML as the syntax highlighting. Near the top of the file, you'll see something like the following (taken from the Neon Color Scheme):Find the
caret
key:and change its value to whatever hex color code you want. If there is no
caret
key, you can add it.Once you're done, save the file. Go back to your file explorer and delete the color scheme's
.tmTheme.cache
file if it exists. Restart Sublime, and your changes should take effect.