Community
    • 登入

    Can't set notepad++ as default program in Windows 10???

    已排程 已置頂 已鎖定 已移動 Help wanted · · · – – – · · ·
    14 貼文 11 Posters 32.0k 瀏覽
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • Tony Wang 0T
      Tony Wang 0
      最後由 編輯

      I used to be able to right click->open with->more apps->look for another app on this pc->find notepad++ in correct directory.

      I noticed that this stopped working recently when I changed computers and had to reinstall everything. Was this another convoluted update for Windows 10?

      Any workaround?

      1 條回覆 最後回覆 回覆 引用 0
      • andrecool-68A
        andrecool-68
        最後由 編輯

        For myself, I add a right click using the bat file:
        https://github.com/notepad-plus-plus/notepad-plus-plus/issues/7741#issuecomment-569251698

        1 條回覆 最後回覆 回覆 引用 0
        • Prahlad-Makwana4145P
          Prahlad-Makwana4145
          最後由 編輯

          Hello,@Tony-Wang-0

          Please follow this step ,To set notepad++ as default program in Windows 10

          step 1 :- Run Notepad++ as administrator.
          step 2 :- Go to Settings > Preferences > File Association.
          step 3 :- Select Notepad “.txt” in Supported extensions panel.
          step 4 :- Click the "-> " to move it to Registered extensions panel.
          step 5 :- Close and try to reassociate.

          I hope this information will be usefull for you.
          Thank you.

          Tony Wang 0T boyavatar2000B Alaattin KöroğluA 3 條回覆 最後回覆 回覆 引用 2
          • Tony Wang 0T
            Tony Wang 0 @Prahlad-Makwana4145
            最後由 編輯

            @Prahlad-Makwana4145 thanks, but this doesn’t work for me. When I click Choose a Default, the only programs that shows up are Notepad and Wordpad, along with option to look for an app in the MS store.

            There is a Notepad++ in the app store, but it is not the official version.

            Seems almost like MS isn’t recognizing it as a possible default app, even though it’s clearly installed and visible under Apps&Features.

            PeterJonesP 1 條回覆 最後回覆 回覆 引用 0
            • PeterJonesP
              PeterJones @Tony Wang 0
              最後由 編輯

              @Tony-Wang-0 ,

              If you have a 64-bit Notepad++ installed in C:\Program Files\Notepad++, search your registry for C:\Program Files (x86)\Notepad++ and replace any such instance with C:\Program Files\Notepad++ – it may be that something wrote the wrong value into the registry (maybe a previous 32-bit installation), and so Windows 10 looks for a nonexistent location, cannot find it, and then refuses to associate an OpenWith action for Notepad++.

              (I’d do a full search of the registry, but I think it’s something like HKCU\Software\Classes\Applications\notepad++.exe and/or HKLM\Software\Classes\Applications\Notepad++.exe, both of which might map to HKCR\Applications\Notepad++.exe. From what I remember, each extension gets an OpenWithList which includes notepad++.exe, and then the registry looks in Applications\Notepad++.exe to find out the actual path to that command; so if that key points to a non-existent executable, Windows ignores that OpenWith option. And I have a memory that something occasionally goes wrong and leaves the x86 version in the registry, even after the 64-bit is installed.)

              Tony Wang 0T E 2 條回覆 最後回覆 回覆 引用 0
              • Tony Wang 0T
                Tony Wang 0 @PeterJones
                最後由 編輯

                @PeterJones thanks, this sounded so promising, but alas, doesn’t seem to be the problem.

                I even uninstalled (revounistaller) and reinstalled, no change. Also tried the 32 bit version, same problem.

                Now I’m really scratching my head because it sounds like it’s just my system, not some crummy Windows change :-(

                1 條回覆 最後回覆 回覆 引用 0
                • adams13x13A
                  adams13x13
                  最後由 編輯

                  Solution of @Prahlad-Makwana4145 does work for me under Windows 10 with 32-bit version of Notepad++, however with following addition.

                  After setting file associations in Notepad++, go to Explorer again, right-click the file, “Properties” -> “Open with:” -> “Change” – now you can select Notepad++ and set is default.

                  1 條回覆 最後回覆 回覆 引用 0
                  • Brad KleinB
                    Brad Klein
                    最後由 編輯

                    had the same issue as @Tony-Wang-0 when migrating to new laptop; had already done @Prahlad-Makwana4145 's solution of adding the extensions inside of npp and still windows would open .txt’s in [not-npp]. Finally tried @adams13x13’s method of finding any .txt file, right click > properties > opens with > select another app on this PC and was able to navigate to npp.exe inside of program files and it looks to be working for all .txt now.

                    1 條回覆 最後回覆 回覆 引用 1
                    • megaslowpokeM
                      megaslowpoke
                      最後由 編輯

                      You can make it easier: add notepad++ as a debugger to the standard notepad. It goes something like this, works everywhere, and is supported by notepad++ itself:

                      reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%You_full_path_to_dir_Notepad_pp%\notepad++.exe\" -notepadStyleCmdline -z" /f
                      

                      The quotes in the string are escaped with a slash to get inside the value and allow to work normally with long paths and non-standard characters in the names.

                      To get the behavior back - just delete this key in registry:

                      reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /f
                      
                      1 條回覆 最後回覆 回覆 引用 0
                      • boyavatar2000B
                        boyavatar2000 @Prahlad-Makwana4145
                        最後由 編輯

                        @prahlad-makwana4145 This worked for me. When I next opened a .txt file I was then able to select Notepad++. Thanks very much for posting.

                        1 條回覆 最後回覆 回覆 引用 0
                        • Alaattin KöroğluA
                          Alaattin Köroğlu @Prahlad-Makwana4145
                          最後由 編輯

                          @prahlad-makwana4145 thanks to you i found the thing to solve my problem at first glance.

                          1 條回覆 最後回覆 回覆 引用 0
                          • Thom De VillaT
                            Thom De Villa
                            最後由 Thom De Villa 編輯

                            此回覆已被刪除!
                            1 條回覆 最後回覆 回覆 引用 1
                            • Thom De VillaT
                              Thom De Villa
                              最後由 編輯

                              If the above steps doesn’t work for you because MS wouldn’t recognize Notepad++ as an application you can also try this one:

                              Step 1: Open any .txt file and go to “Properties”
                              8df83f1f-5c65-4738-8c0f-28f5383928df-image.png
                              Step 2: In select the “Change” option in “Opens with” under “General”
                              f8e262c8-4af3-4260-b3ac-f7999096c786-image.png
                              Step 3: Look for the option “More apps” and select it
                              a6e3a205-893b-43ca-adf0-5aca85c3f670-image.png
                              Step 4: Select “Look for another app on this PC” at the bottom which will open a window
                              c3d90c4a-6149-47eb-934a-06ff534af87c-image.png
                              Step 5: Search for the folder in which your application Notepad++ is located and open it
                              071ebfb7-a775-45e5-892b-0ecc79d4b6d2-image.png
                              Step 6: Select the application Notepad++ then select “Open” which will cause the window close
                              9e2557c2-199e-4d81-8ede-06bfd6013b45-image.png a8bce8e3-cdba-4943-b690-0b8cfcde3b10-image.png
                              Step 7: Finally, the window will close and you should be back to the “Properties” window of the .txt file in which case select “Apply” and then “OK”
                              8fc0e872-055b-41b6-83e2-57f97d5bc84c-image.png

                              1 條回覆 最後回覆 回覆 引用 1
                              • E
                                everplex @PeterJones
                                最後由 everplex 編輯

                                This did work for me, I had instances of the x86 version in the registry that after manually changing in regedit, and also setting the file associations in Notepad++ settings (preferences), I was able to set the file associations and default programs.

                                1 條回覆 最後回覆 回覆 引用 0
                                • 第一個貼文
                                  最後的貼文
                                The Community of users of the Notepad++ text editor.
                                Powered by NodeBB | Contributors