@siswonugroho said in Settings, custom styles and shortcuts got reset after power loss:
One question, what file should I copy to backup my custom style? Files inside the themes folder, stylers.xml or both?
That depends completely on your definition of “my custom style”.
Do you mean “I am using the default light mode theme, but with manual edits”? Then you need to backup stylers.xml Do you mean “I am using the DefaultDarkMode theme, which is what it naturally picks when I chose dark mode”? Then if you use it without editing, just pick Dark Mode again, and it will go back to the right theme; if you do edit the DefaultDarkMode theme, then you will have to backup that theme’s file from the themes\ folder. Do you mean “I picked the ‘Bespin’ theme (or one of the other built-in themes) and haven’t made any changes to it”? Then all you have to do is re-pick the ‘Bespin’ theme (or whichever it was) if N++ ever reverts to default again. Do you mean “I picked the ‘Bespin’ theme (for example) and then made changes to the stylings defined by that theme”? Then you will have to save a backup of your modified ‘Bespin’ theme from the themes\ directory. Do you mean “I downloaded some other theme that doesn’t ship with Notepad++ and put it in my themes\ directory, and am using that theme”? Then you will want to backup that theme.