Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Set default language for new files

Tags:

atom-editor

Newly created files in Atom are always "Plain Text". How can I change this so that new files will automatically be in another language, for example "Shell Script (Bash)"? I want to do this because auto indentation does not work with Plain Text files.

like image 789
shrx Avatar asked Dec 02 '22 19:12

shrx


1 Answers

Had this problem as well, there is a plugin called default-language that will do this for you.

Search atom for default-language, install and open its settings. Type the name of the language you want Atom to default to, e.g. Shell Script (if in doubt, copy from the language selection menu) in the Default Language field. Next time you open a script with no extension (or shebang) it'll default to the language you set.

like image 105
gib Avatar answered Dec 27 '22 21:12

gib