Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I change the color scheme for .txt files to always be the default scheme in Sublime 3

I like to change around my default color scheme in my text editors. I love Sublime and use it for a lot of .txt documents. I don't like the default white-on-gray scheme that is uses though.

I saw other answers about how to change a specific background color based on the file type, but I haven't come across anything about making a specific file type use the default setting.

I would like any text file I open/create in sublime to use the same color scheme as what I currently have selected from the preferences menu.

like image 728
BrianHVB Avatar asked Apr 02 '16 20:04

BrianHVB


2 Answers

Open a .txt file in Sublime, then select Preferences -> Settings-More -> Syntax Specific-User to open Packages/User/Plain text.sublime-settings. More than likely there is a line in there setting the color scheme to Monokai, which is Sublime's default. Just delete that line, save the file, and you should be all set.

like image 63
MattDMo Avatar answered Sep 30 '22 19:09

MattDMo


I too had issues with my text file color scheme in Sublime text. The scheme was centered dark-gray text on a light-gray background, very hard to read.

Look in the settings for any Markdown packages you have installed

Based on @BrianHVB's comment in the accepted answer about the Markdown package, I looked up the settings for the MD package I was using.

In my case, the settings had a list of file extensions for which the package would activate. The list included txt files. I opened the User settings file for the MD package, and overwrote the extensions setting. Once I reopened my txt the color scheme was back to normal.

I don't know why txt files had a gray background, while md files were fine. Perhaps that answer is elsewhere in the package settings, but I lost interest after I fixed my problem.

Markdown.sublime-settings - User

{
    "extensions":
    [
        "md",
        "mdown"
    ]
}

This is how I got to the User settings file for the package

enter image description here

like image 43
Walter Stabosz Avatar answered Sep 30 '22 21:09

Walter Stabosz