• Login
Community
  • Login

Tab settings not saving settings for "use default value"

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
15 Posts 5 Posters 1.5k 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.
  • D
    Daniel Fuchs
    last edited by May 7, 2020, 9:57 AM

    Hi,

    I normally have the option “replace by space” set for my files Tab settings. However, there are cases, where I like to use tabs as a standard, i.e. XML or JSON files, where I prefer tabs over spaces.

    However the settings seen below do not seem to work across sessions. This means, that I can set the options according to my preferences, but as soon as Notepad++ is restarted, they are gone.

    Here’s a screenshot depicting the setting:

    Preferences, Language, Tab Settings, Use default value

    I also tried to check where this option should be stored (i. e. config.xml), but didn’t find anything.

    Is this a bug or intended behaviour.

    Best regards,
    Daniel

    === Debug Info ===
    Notepad++ v7.8.6 (64-bit)
    Build time : Apr 21 2020 - 15:23:03
    Path : C:\Program Files\Notepad++\notepad++.exe
    Admin mode : OFF
    Local Conf mode : OFF
    OS Name : Windows 10 Pro (64-bit)
    OS Version : 1909
    OS Build : 18363.720
    Plugins : ComparePlugin.dll mimeTools.dll NppConverter.dll NppExport.dll PythonScript.dll XMLTools.dll

    A E 2 Replies Last reply May 7, 2020, 12:12 PM Reply Quote 0
    • A
      Alan Kilborn @Daniel Fuchs
      last edited by May 7, 2020, 12:12 PM

      @Daniel-Fuchs

      Is there any reason you redboxed Use default value in your screenshot?

      E 1 Reply Last reply May 7, 2020, 12:34 PM Reply Quote 0
      • E
        Ekopalypse @Alan Kilborn
        last edited by Ekopalypse May 7, 2020, 12:35 PM May 7, 2020, 12:34 PM

        @Alan-Kilborn

        as far as I understand @Daniel-Fuchs default is repalce by space.
        Unchecking use default value and not having checked Replace by space
        would use tabs for xml documents. Am I wrong?

        A 1 Reply Last reply May 7, 2020, 12:41 PM Reply Quote 0
        • E
          Ekopalypse @Daniel Fuchs
          last edited by Ekopalypse May 7, 2020, 12:40 PM May 7, 2020, 12:39 PM

          @Daniel-Fuchs

          this seems to work for me as long as I’ve understand correctly what
          you are trying to achieve.

          Notepad++ v7.8.6   (64-bit)
          Build time : Apr 21 2020 - 15:23:03
          Path : D:\Tests\npp\_latest\x64\notepad++.exe
          Admin mode : OFF
          Local Conf mode : ON
          OS Name : Windows 7 Professional (64-bit) 
          OS Build : 7601.24544
          Plugins : mimeTools.dll NppConverter.dll NppExport.dll 
          
          1 Reply Last reply Reply Quote 0
          • A
            Alan Kilborn @Ekopalypse
            last edited by May 7, 2020, 12:41 PM

            @Ekopalypse

            I suppose what the OP was trying to point out with the redboxing was that the item was the only one that was altered.

            E 1 Reply Last reply May 7, 2020, 12:54 PM Reply Quote 0
            • E
              Ekopalypse @Alan Kilborn
              last edited by May 7, 2020, 12:54 PM

              @Alan-Kilborn

              Yes, I think/thought so too but to illustrate what he did it is needed, isn’t it?
              Seems I’m drawing a blank, again !? (not sure if this is the correct translation but sounds nice :-)

              1 Reply Last reply Reply Quote 0
              • P
                PeterJones
                last edited by May 7, 2020, 1:57 PM

                @Daniel-Fuchs ,

                As @Ekopalypse said, “it works for me”:

                Notepad++ v7.8.6   (64-bit)
                Build time : Apr 21 2020 - 15:23:03
                Path : C:\usr\local\apps\notepad++\notepad++.exe
                Admin mode : OFF
                Local Conf mode : ON
                OS Name : Windows 10 Enterprise (64-bit) 
                OS Version : 1903
                OS Build : 18362.720
                Plugins : ComparePlugin.dll LuaScript.dll MarkdownViewerPlusPlus.dll mimeTools.dll NppConsole.dll NppConverter.dll NppEditorConfig.dll NppExec.dll NppExport.dll NppFTP.dll PreviewHTML.dll PythonScript.dll QuickText.dll XMLTools.dll 
                
                D 1 Reply Last reply May 7, 2020, 4:18 PM Reply Quote 3
                • D
                  Daniel Fuchs @PeterJones
                  last edited by Daniel Fuchs May 7, 2020, 4:20 PM May 7, 2020, 4:18 PM

                  @PeterJones thanks for your animation.

                  That‘s my issue. It does not remain between sessions. Can you please point out, where this setting should be saved?

                  D 1 Reply Last reply May 7, 2020, 4:22 PM Reply Quote 0
                  • D
                    Daniel Fuchs @Daniel Fuchs
                    last edited by May 7, 2020, 4:22 PM

                    I do not run in LocalConfMode, whereas you both do…

                    E 1 Reply Last reply May 7, 2020, 6:03 PM Reply Quote 0
                    • A
                      Alan Kilborn
                      last edited by Alan Kilborn May 7, 2020, 5:15 PM May 7, 2020, 5:14 PM

                      @Daniel-Fuchs said in Tab settings not saving settings for "use default value":

                      That‘s my issue. It does not remain between sessions.

                      I can duplicate OP’s issue with fresh portable (Local Conf Mode : ON) N++ extraction:

                      • Go in and untick Use default value for xml files.
                      • Exit Notepad++
                      • Upon restart, Use default value for xml is ticked again.

                      So take heart, OP, I think that I agree with your findings!

                      M 1 Reply Last reply May 7, 2020, 5:40 PM Reply Quote 1
                      • M
                        Michael Vincent @Alan Kilborn
                        last edited by May 7, 2020, 5:40 PM

                        @Alan-Kilborn

                        I’m in local config mode:


                        Notepad++ v7.8.6 (64-bit)
                        Build time : Apr 21 2020 - 15:23:03
                        Path : C:\usr\bin\npp64\notepad++.exe
                        Admin mode : OFF
                        Local Conf mode : ON
                        OS Name : Windows 10 Enterprise (64-bit)
                        OS Version : 1809
                        OS Build : 17763.1158
                        Plugins : AnalysePlugin.dll AutoSave.dll BetterMultiSelection.dll ChangedLines.dll CodeAlignmentNpp.dll ColumnTools.dll ComparePlugin.dll CsvQuery.dll CustomizeToolbar.dll DoxyIt.dll DSpellCheck.dll Explorer.dll GitSCM.dll JSMinNPP.dll NppConsole.dll NppConverter.dll NppEventExec.dll NppExec.dll NppExport.dll NppFTP.dll NppMarkdownPanel.dll NppMenuSearch.dll PreviewHTML.dll Python Indent.dll QuickText.dll SpeechPlugin.dll SurroundSelection.dll TagLEET.dll XMLTools.dll ZoomDisabler.dll


                        I use “Replace by space” “4” and only override that in Makefile:

                        bc40da0e-9537-4cce-82e3-0f39d8c93576-image.png

                        That always stays for me opening and closing N++ and through reboots.

                        I think it stores it in $(NPP_INSTALL_DIR)\langs.xml

                        PS MVINCENT ~ > grep tabSettings C:\usr\bin\npp64\langs.xml
                                <Language name="makefile" ext="mak" commentLine="#" tabSettings="4" />
                                <Language name="python" ext="py pyw" commentLine="#" tabSettings="-1">
                                <Language name="yaml" ext="yml yaml" commentLine="#" tabSettings="-1">
                        

                        You’ll notice Python and YAML are also in there because in a default install, they use tab and I “override” them to used the default (which I set to convert to 4 spaces):

                        1f4ccf2b-5764-4fa2-a10d-bf9437d77455-image.png

                        Hope this helps?

                        Cheers.

                        PS: i LOVE pasting pictures directly into the new post text box!!!

                        1 Reply Last reply Reply Quote 3
                        • A
                          Alan Kilborn
                          last edited by May 7, 2020, 5:58 PM

                          @Alan-Kilborn said in Tab settings not saving settings for "use default value":

                          So take heart, OP, I think that I agree with your findings!

                          I no longer agree. :-(

                          If one follows my earlier outlined procedure, they will (and I, finally) realize that what I did…does nothing. All I do is remove the “default” setting from being applied to XML files. Well…if the setting then left for XML files happens to match the “default”, what has been altered: NOTHING (that matters for the current discussion).

                          Anyway, apologies for the confusion – seems to be working just fine for me now to save the settings between Notepad++ runs.

                          1 Reply Last reply Reply Quote 2
                          • E
                            Ekopalypse @Daniel Fuchs
                            last edited by May 7, 2020, 6:03 PM

                            @Daniel-Fuchs

                            goto %APPDATA% directory and rename notepad++ directory temporarily.
                            Start npp, it will recreate new, with default settings set, config files.
                            Do your changes and make your test to see if it keeps it settings.

                            1 Reply Last reply Reply Quote 3
                            • D
                              Daniel Fuchs
                              last edited by May 7, 2020, 9:39 PM

                              Thank you all for your help.

                              I then guess something is wrong with my langs.xml (on my work computer). The settings work just fine on my private computer. I’ll check on that and report back.

                              If anyone is interested (thanks @Michael-Vincent for pointing this out), the property tabSettings in /NotepadPlus/Languages/Language is set to “-1” if the “Use default value” is use. When this checkbox is disabled the value is then determined by the configured tab size and is incremented by 128 if the “Replace by space” option is set.

                              1 Reply Last reply Reply Quote 3
                              • D
                                Daniel Fuchs
                                last edited by May 11, 2020, 8:08 AM

                                Removing config.xml fixed the issue on my work computer.

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