Default save extension in Notepad++

8

3

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.

Val

Posted 2013-02-04T11:54:25.137

Reputation: 1

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 – 2016-02-08T16:01:25.770

@Domi I write so many text files! :) Several per day at least. I like using Notepad++ for writing meeting minutes – Jonathan Benn – 2016-02-08T16:02:43.327

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 https://notepad-plus-plus.org/download/v6.8.7.html "2. Restore file extension feature in save dialog."

– Jonathan Benn – 2016-02-09T13:06:13.530

2It bugs me too that a potentially powerful code editor makes the small things so annoying. Seriously: Who writes so many *.txt files? – Domi – 2014-04-22T09:33:55.587

Answers

8

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.

Eric Roper

Posted 2013-02-04T11:54:25.137

Reputation: 326

FYI, the link in this answer doesn't work. – Math1000 – 2018-03-21T15:58:37.570

1

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).

Graham

Posted 2013-02-04T11:54:25.137

Reputation: 11

1

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

Nicholas Clegg

Posted 2013-02-04T11:54:25.137

Reputation: 11