Sublime Text 2 - Default Document Type

后端 未结 3 1264
难免孤独
难免孤独 2020-12-16 02:36

Is there a way to set a default document type when saving a NEW FILE? I created several new files and I want to have a default value of .txt when saving a NEW FILE.

3条回答
  •  攒了一身酷
    2020-12-16 03:28

    Working after these steps:

    1.Uninstalled

    2.Installed using Package Control

    3.Test using default install (type Jave) <-- worked

    4.Copy and Renamed file Sublime Text 2\Packages\Text\Plain text.tmLanguage > Sublime Text 2\Packages\Text\Plain_text.tmLanguage

    5.Changed file Sublime Text 2\Packages\Default File Type\default_file_type.sublime-settings >

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

    -- All working.

    I did not need to copy any files into the 'Packages/User' folder

    @fraxel _ Thanks for all the help and quick response.

提交回复
热议问题