Community
    • Login

    Opening .cfg by default with Notepad++

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 3 Posters 5.1k 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.
    • JulianJ
      Julian
      last edited by

      I’m trying to make .cfg files open with Notepad++ to make it easier for me to edit aircraft in Flight Sim. Here’s what I’ve already done, to no avail. I have Windows 11 and the latest version of Notepad++.

      • Tried to swap the default program in Windows. I opened the “Choose defaults by file type” program in Windows Settings. The problem here is that there is no .cfg option to name a default program. There are all the other extensions (.txt, .doc, etc.) but no .cfg. Therefore, I don’t have the option to open .cfg files with any default program.
        e76c2617-9295-4652-9223-0eab1b26b1e0-image.png

      • Tried using the right-click dialogue. I right-click on a .cfg file and navigate to “open with”. Notepad++ does show up, but the option to choose “Always” is not present. Only the option that says “just once” is there.
        be133cce-c33b-4888-a1cd-6d20c003358d-image.png

      • Tried using Notepad++. I open Notepad++ as admin, and navigate to Settings/Preferences/File Associations. Then, I go to customize, manually add “.cfg” to the text box and move it to “Registered Extensions”. to open the file. Then I close the dialogue.
        7ae8525b-d0bb-4361-a00f-8173044332e4-image.png

      • Tried commanding a .cfg File to open with Notepad++ using preferences. I right-click a .cfg file and navigate to “Preferences”. In other file types, there is an option that says “Opens With” and then allows you to change the program that opens the file. This option does not exist on any .cfg files I right-click on.
        57e867ad-c922-4d36-bc71-2db986c9ae2b-image.png

      None of this has worked. What am I missing here?

      Terry RT CoisesC 2 Replies Last reply Reply Quote 1
      • Terry RT
        Terry R @Julian
        last edited by

        @Julian
        I don’t think you are missing anything. There have been a few recent posts about the issue of integrating Notepad++ into Windows 11. Here one of the forum members has made some suggestions, but admits it is getting harder as “Microsoft” knows better.

        Terry

        JulianJ 1 Reply Last reply Reply Quote 1
        • JulianJ
          Julian @Terry R
          last edited by

          @Terry-R Thanks Terry. I have the option on the right-click menu to edit with Notepad++, but I’m looking for a way to do it when opening the file normally (double-click) without having to navigate to the right-click menu. I open a ton of these files, so right-clicking would be a little cumbersome for my purposes.

          Terry RT 1 Reply Last reply Reply Quote 0
          • Terry RT
            Terry R @Julian
            last edited by

            @Julian

            A quick Google search turned up this.

            Likely there are other internet resources where others have had similar problems.

            Currently though I don’t know of any other posts on this forum with your specific issue, but take a look around.

            Terry

            1 Reply Last reply Reply Quote 0
            • CoisesC
              Coises @Julian
              last edited by

              @Julian What happens now when you double-click on a .cfg file?

              It’s possible that this will help:

              https://www.tenforums.com/tutorials/156072-how-add-remove-open-always-use-app-windows-10-a.html

              JulianJ 1 Reply Last reply Reply Quote 0
              • JulianJ
                Julian @Coises
                last edited by

                @Coises It opens in normal Notepad when I double-click at the moment.

                CoisesC 1 Reply Last reply Reply Quote 0
                • CoisesC
                  Coises @Julian
                  last edited by Coises

                  @Julian said in Opening .cfg by default with Notepad++:

                  @Coises It opens in normal Notepad when I double-click at the moment.

                  If you’re familiar with the registry editor, take a look at HKEY_CLASSES_ROOT\.cfg and see what is there.

                  If it has a single value, Default, which reads cfg_auto_file, take a look at HKEY_CLASSES_ROOT\cfg_auto_file.

                  If one of those has a shell\open\command pointing to notepad.exe, you could try changing it to the path to Notepad++. No warranties, express or implied, about what happens if you change things in the registry, though… I mean that.

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