Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
2  
It bugs me too that a potentially powerful code editor makes the small things so annoying. Seriously: Who writes so many *.txt files? – Domi Apr 22 '14 at 9:33
    
I have Notepad++ v6.8.6 and I seem to have the opposite problem: it no longer saves to the default extension. If I save to filename "test" then Notepad++ no longer adds the ".txt" extension. This is very annoying as it requires me to constantly add the extension manually. – Jonathan Benn Feb 8 at 16:01
    
@Domi I write so many text files! :) Several per day at least. I like using Notepad++ for writing meeting minutes – Jonathan Benn Feb 8 at 16:02
    
Ok, I just confirmed that my related problem in Notepad++ v6.8.6 (".txt" extension not being added by default) is a bug introduced in that version only. The bug gets fixed in v6.8.7 notepad-plus-plus.org/download/v6.8.7.html "2. Restore file extension feature in save dialog." – Jonathan Benn Feb 9 at 13:06
up vote 6 down vote accepted

I found a workaround here. You have to edit langs.xml. On windows it is located in appdata\roaming\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 choose makefile because I don't use it and there is only one setting for # comments.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.