• Login
Community
  • Login

Make Notepad++ Default Program

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
7 Posts 5 Posters 11.8k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G
    Gerald Hanley
    last edited by Feb 11, 2016, 11:38 PM

    How do I make notepad ++ the default program in Windows 10? It doesn’t show up as an option in default programs.

    C 1 Reply Last reply Feb 12, 2016, 12:22 AM Reply Quote 0
    • C
      Claudia Frank @Gerald Hanley
      last edited by Claudia Frank Feb 12, 2016, 12:22 AM Feb 12, 2016, 12:22 AM

      Hello @Gerald-Hanley,

      what do you mean by default program in windows 10?
      Do you mean, open, let’s say txt files with npp always?
      If so, right click on the txt file,
      ->properties,
      ->press change button
      ->more apps
      ->scroll down
      ->look for another app on this pc
      ->goto npp install directory and select npp
      ->apply
      ->ok

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • C
        Công Cà Cuống
        last edited by Feb 27, 2016, 3:41 PM

        For .TXT file, it is ok.

        How can I make NPP as default program to open a no-extension file? Exam: “Makefile” (a special file, containing shell commands, that you create and name makefile, Makefile…)

        C 1 Reply Last reply Feb 27, 2016, 5:18 PM Reply Quote 0
        • C
          Claudia Frank @Công Cà Cuống
          last edited by Claudia Frank Feb 27, 2016, 5:18 PM Feb 27, 2016, 5:18 PM

          @Công-Cà-Chớn

          you need to hack the registry. (regedit.exe)

          Under HKEY_CLASSES_ROOT create a key . (a dot)
          under the dot key create a key shell
          under shell key create a key open
          under open key create a key command
          so you should have

          [HKEY_CLASSES_ROOT.\shell\open\command]

          doube click the default icon in the right pane and put in the complete path to npp and add %1.
          The path to npp should be encased by double quotes so something like

          “D:\ProgramData\notepad++\notepad++.exe” %1

          Of course with your installation path.

          Close regedit, done.

          Cheers
          Claudia

          C 1 Reply Last reply Feb 28, 2016, 2:17 PM Reply Quote 0
          • C
            Công Cà Cuống @Claudia Frank
            last edited by Feb 28, 2016, 2:17 PM

            @Claudia-Frank

            Yeah, thanks for your support. It’s very good.

            1 Reply Last reply Reply Quote 0
            • M
              musikerv
              last edited by musikerv Nov 7, 2017, 9:27 AM Nov 7, 2017, 9:26 AM

              For Windows 7 but I think for 10 will be very similar
              Very easy non-registry method:

              1.Run Npp as Administrator.
              2.Settings->Preferences->File Association
              3.Choose from ‘Supported extenstions’, e.g. “.txt” and add it to “Registered extensions”.
              This gives Notepad++ as an option in windows context menu when clicking “Open with…”->“Choose default program…”
              This was NOT possible before by simple navigation into Npp install folder (cause it was not pre-listed in the proposed applications by Windows)

              1. Tataaaan!
              G 1 Reply Last reply Oct 28, 2022, 7:48 AM Reply Quote 1
              • G
                Geo R @musikerv
                last edited by Oct 28, 2022, 7:48 AM

                @musikerv Thanks much this is the easy way to make changes.
                BTW, npp = the program itself Notepad++

                Using the tab Settings and then Preferences

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors