Question

How can I change the default highlight colour in Sublime Text 2? I know I have to find a highlight key in one of the theme files but I don't know where these theme files are kept. Are they in the library somewhere?

Was it helpful?

Solution

Found the theme files in this directory:

~/Library/Application Support/Sublime Text 2/Packages/Color Scheme - Default/(name_of_theme)

You can see which theme you are using by going to (from within Sublime Text 2)

Sublime Text 2 menu>Preferences>Colour Scheme

and see which one is ticked.

Open the theme file and find the key that says:

<key>selection</key>

not one of the highlight keys.

Go to a site that shows hex colour codes (like this one http://html-color-codes.com/) and find the code for the colour you want. Then sub your new colour code into the line below the selection key in the theme file, replacing the old hex colour code.

Save the modified theme file and it should work straight away.

Licensed under: CC-BY-SA with attribution
Not affiliated with apple.stackexchange
scroll top