Community
    • Login

    Macro Save/Reload/Where Files

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    9 Posts 8 Posters 11.0k Views 2 Watching
    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.
    • HotBit z80H Offline
      HotBit z80
      last edited by

      HI,
      How i backup my macro, for after uninstall/reinstall/sysformat…, so I can recharge them after that? Where NPP save my macros? How reload it? I no see menu option for it.

      Meta ChuhM 1 Reply Last reply Reply Quote 0
      • Meta ChuhM Offline
        Meta Chuh moderator @HotBit z80
        last edited by

        welcome to the notepad++ community, @HotBit-z80

        on a notepad++ default installation, your macros will be stored at %AppData%\Notepad++ in a file called shortcuts.xml.

        copy that file to a usb drive to restore it later.
        (best practice is to copy the whole %AppData%\Notepad++ folder, and restore it after a new installation, as it also contains other settings.)

        for everything else you would like to preserve, e.g. if you want to clone your complete notepad++ setup, including all plugins, we would need your debug information from the notepad++ menu ? > debug info... > copy debug info into clipboard.

        1 Reply Last reply Reply Quote 2
        • Juan Manuel Carrillo CamposJ Offline
          Juan Manuel Carrillo Campos
          last edited by

          Hi!,
          Uups, I found the shortcuts.xml file, but my macros are not there (just a macro named “Trim Trailing Space and Save” . where are my macros?

          Alan KilbornA 1 Reply Last reply Reply Quote 0
          • Alan KilbornA Offline
            Alan Kilborn @Juan Manuel Carrillo Campos
            last edited by

            @Juan-Manuel-Carrillo-Campos

            We would need your “debug info” (see above for how to get it) to be totally sure, but see if there is a shortcuts.xml file in the same folder as your notepad++.exe file. If there is, check it for your macros.

            1 Reply Last reply Reply Quote 2
            • Juan Manuel Carrillo CamposJ Offline
              Juan Manuel Carrillo Campos
              last edited by

              my debug info:
              Notepad++ v7.7 (64-bit)
              Build time : May 19 2019 - 13:05:35
              Path : C:\Program Files\Notepad++\notepad++.exe
              Admin mode : OFF
              Local Conf mode : OFF
              OS : Windows 10 (64-bit)
              Plugins : ComparePlugin.dll DSpellCheck.dll mimeTools.dll NppConverter.dll

              EkopalypseE 1 Reply Last reply Reply Quote 1
              • EkopalypseE Offline
                Ekopalypse @Juan Manuel Carrillo Campos
                last edited by

                @Juan-Manuel-Carrillo-Campos

                as your local conf mode is off it means that the configuration files are stored
                within %AppData%\Notepad++. Did you search there?

                1 Reply Last reply Reply Quote 3
                • Bharath kB Offline
                  Bharath k
                  last edited by

                  @Juan-Manuel-Carrillo-Campos - I had the same issue that you faced, but after i closed notepad ++ then i was able to see the macro updated in shortcuts.xml at location %AppData%\Notepad++ . Hope this helps for others.

                  1 Reply Last reply Reply Quote 2
                  • PorAhiViene PepeP Offline
                    PorAhiViene Pepe
                    last edited by PorAhiViene Pepe

                    You may need to search in C:\Users\<localaccount>\AppData\Roaming\Notepad++
                    Will be listed there, as shortcuts.xml with this format,

                        <Macro name="MACRONAME" Ctrl="no" Alt="no" Shift="no" Key="0">
                            <Action type="0" message="2013" wParam="0" lParam="0" sParam="" />
                            <Action type="3" message="1700" wParam="0" lParam="0" sParam="" />
                       </Macro>
                    
                    PeterJonesP 1 Reply Last reply Reply Quote 0
                    • PeterJonesP Online
                      PeterJones @PorAhiViene Pepe
                      last edited by PeterJones

                      @PorAhiViene-Pepe said in Macro Save/Reload/Where Files:

                      C:\Users\<localaccount>\AppData\Roaming\Notepad++

                      Please note: that assumes a standard Windows setup. One can tell Windows to place that folder in a different location. The environment variable %AppData% 🛈 encodes the right path for the ...\AppData\Roaming folder, so %AppData%\Notepad++, like @Ekopalypse said a couple years ago, and @Bharath-k said a few months back, is going to access the right spot, no matter how Windows is configured, and without having to edit the path: you can just paste %AppData%\Notepad++ into the Windows Explorer or File>Open address bar, and always get to the right place
                      9223894d-5e52-4a26-9cfc-a6124b934689-image.png
                      03ecf6eb-4916-4844-bca6-3e478656ab43-image.png

                      1 Reply Last reply Reply Quote 2

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • First post
                        Last post
                      The Community of users of the Notepad++ text editor.
                      Powered by NodeBB | Contributors