Default save extension in Notepad++
I see Notepad adds .txt to the save name I choose. I can change this by changing file type when saving. But, next time I must change the file type again. How do I choose the default file type?
I see that my type is "Normal Text" in the Settings > Preferences. But, I see no "None" option there.
Solution 1:
I found a workaround here.
You have to edit langs.xml. On Windows, it is located in %appdata%\notepad++. Change < Language name="normal" ext="txt"/>
to < Language name="normal" ext=""/>
. Then set your default language to Normal Text.
Alternately, you could change a language you don't use if you wish to keep Normal Text for .txt files. I chose makefile because I don't use it and there is only one setting for #
comments.
Solution 2:
If you are wanting to save a file with a default extension of let's say, .c , everytime you use notepad++. You go into Settings -> Preferences -> File Association -> click C, C++,obj in Supported exts: -> click .c -> press the (->) button o put it into Registered exts: . You now will by default first choice, save as a .c file
Solution 3:
In Notepad++ 7.1 From the menu, select:
Settings | Preferences | Default Directory. Place a check-mark in the "Use new style save dialog.
When you save a file, manually add the file extension to control how the file is saved (file type).