Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sublime Text 3 - How to default to Text filetype #9

Open
bkgrrl00 opened this issue May 6, 2016 · 4 comments
Open

Sublime Text 3 - How to default to Text filetype #9

bkgrrl00 opened this issue May 6, 2016 · 4 comments

Comments

@bkgrrl00
Copy link

bkgrrl00 commented May 6, 2016

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?

@MohnJadden7
Copy link

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

@bkgrrl00
Copy link
Author

bkgrrl00 commented May 29, 2019 via email

@shawnzhsh
Copy link

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

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

@Coyote21
Copy link

Coyote21 commented Nov 6, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants