Menu

Default extension for new files

-
2005-11-22
2012-11-13
  • -

    - - 2005-11-22

    It'd be great if n++ could use the ".txt" extension for default new files when saving/saving as, given that it is a text editor.

     
    • Paulius

      Paulius - 2005-11-22

      This topic was discussed before, ans i was one of the most active opponents, claiming that Notepad++ shouldn't add anything to the filename, because it is "Programmers code editor" and not just "text editor". Imagine that you are writing some Perl scripts (Perl scripts are usualy saved without any extension at all). How would feel about Notepad++ if it would add .txt to each and every Perl script you write?

       
      • f0dder

        f0dder - 2005-11-23

        Well, the way other editors support this works pretty well... if you enter a filename without an extesion, default extension is added automatically. If you type ".pl", no ".txt" will be added. If you want a filename without an extension, you type "filename.", and again no extension is added.

        Simple heuristics that work well, and don't take many lines of code to implement.

         
        • Metshrine

          Metshrine - 2007-05-28

          I would like to see this implimented as well. You have no idea how many times I would love to be able to SET the default extension and filetype in options, but alas, I cant. I even select NORMAL TEXT FILE from the drop down list and no .txt is added. I pray that the developer adds this to Notepad++. It is much needed.

           
    • Nobody/Anonymous

      Of course, it could always be an option to specify the default extension.  Left blank the extension would not be set.  If ".txt", the file would be named file.txt.  Then you get the best of both worlds.

      Wish I had the skills to contribute that change, but alas, I'm barely getting my hands around VBS.

      -Bozford

       
  • Gaurav Panchal

    Gaurav Panchal - 2012-03-10

    Hi,
    Here is a setup to set notepad++ as default program for several binary types.. It also adds it to default program lishttt in Vista and 7. So you can go to Start>Default Programs> Set Default Programs and select file types among 50 supported formats including txt and non extension files like README and LICENSE. (If doesnt work in 7 turn off UAC and try again)

    Download: p://sourceforge.net/projects/pcstarters/files/FileAssociation/notepad%20%20%20Associations/notepad_file_assoc.exe/download