sublime-DefaultFileType icon indicating copy to clipboard operation
sublime-DefaultFileType copied to clipboard

Sublime Text 3 - How to default to Text filetype

Open bkgrrl00 opened this issue 9 years ago • 5 comments

I am using SublimeText 3 and I would like new files to be created in plain text format (i.e. default to a .TXT extension when they are saved).

I followed the instructions I found here.

I created a new file called "default_file_type.sublime-settings" and placed it in the "Packages/User" directory. The file had the following content:

{ "default_new_file_syntax": "Packages/Text/Plain_text.tmLanguage",
"use_current_file_syntax": false }

I also unzipped the "Text.sublime-package" file, created a new directory called "Text", and renamed the "Packages/Text/Plain text.tmLanguage" file to "Packages/Text/Plain_text.tmLanguage"

When I open SublimeText, I get an error: Error loading syntax file "Packages/Text/Plain_text.tmLanguage": Unable to load Packages/Text/Plain_text.tmLanguage

When I save a new file, it does not save in .TXT format.

Where did I go wrong?

bkgrrl00 avatar May 06 '16 18:05 bkgrrl00

I am also having this issue and have yet to find a solution. Were you ever able to figure it out?

MohnJadden7 avatar May 25 '19 21:05 MohnJadden7

I never found a solution to this problem, and ended up switching to Notepad++ instead.

Sent from Outlookhttp://aka.ms/weboutlook


From: MohnJadden7 [email protected] Sent: May 25, 2019 5:34 PM To: spadgos/sublime-DefaultFileType Cc: b00kgrrl; Author Subject: Re: [spadgos/sublime-DefaultFileType] Sublime Text 3 - How to default to Text filetype (#9)

I am also having this issue and have yet to find a solution. Were you ever able to figure it out?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/spadgos/sublime-DefaultFileType/issues/9?email_source=notifications&email_token=AESIKNA7NW3K7TRG7KRMIYTPXGWEZA5CNFSM4CDEPAKKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWHZTEA#issuecomment-495950224, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AESIKNBPEKDFR654GM4KH73PXGWEZANCNFSM4CDEPAKA.

bkgrrl00 avatar May 29 '19 14:05 bkgrrl00

should be: (the path :: no Text :::

{ "default_new_file_syntax": "Packages/Plain_text.tmLanguage", "use_current_file_syntax": false }

shawnzhsh avatar Jan 10 '20 23:01 shawnzhsh

I'm having exact same issues, want default to be PlainText and Default File Extension to be .txt.

This needs updated (Sublime 4) or better instructions, current instructions do not make sense, at least not to dummies like me.

Tried above suggestion by shawnzhsh, but now I get error message about missing file "Packages/Plain_text.tmLanguage" everytime I open Sublime Text.

Coyote21 avatar Nov 06 '23 15:11 Coyote21