• How to restore the all the setting of notepad++(except reinstalling)

    Locked
    2
    0 Votes
    2 Posts
    7k Views
    ITIVII

    Get the answer,inspired and trying.

    In the newest version, it’s not enough to delete all the .xml files in C:\Users\X\AppData\Roaming\Notepad++.
    You must delete files in C:\Users\X\AppData\Roaming\Notepad++\backup as well.
    Then just restart.

  • Shortcut key for File > Reload from Disk

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Patrick CoyneP

    Very useful! Thank you!

  • Notepad++ crashed with NULLs.

    Locked
    2
    0 Votes
    2 Posts
    4k Views
    PeterJonesP

    Unfortunately, you’re not alone. Comptuer crashes can cause unexpected behavior, and so far, no one in the development team has been able to reliably replicate and thus debug how to prevent the problem. This is officially tracked in issue #2381

    Regarding the specifics of your instance: you mentioned checking in %AppData%/Notepad++/plugins/config/NppFTP/Cache… but that’s only used to cache files if you’re using the NppFTP plugin to edit remote files (on your webserver, or similar). The right directory location for Notepad++'s backup (assuming you have Settings > Prefrences > Backup enabled) would be %AppData%\Notepad++\Backup: did you check there? Also, if you used a “local”/portable version (check ? menu > Debug Info, and look for “Local Conf mode:”; if it says ON, then it’s “local”), then the backup directory would be a subdirectory of your whatever directory notepad++.exe is in, rather than in the %AppData% hierarchy.

    Unfortunately, if it’s not there, there’s probably not much we can do to help you recover it. However, you’re luckier than some, if your statement that “whatever data I had saved till yesterday is also fine” means that you did have your own backup somewhere, and that you’ve just lost the most recent edits. (If not, for the future, I highly recommend that you keep a backup of any important data**. This can be done with dedicated backup software, or with storing your files in a service like dropbox or one drive or google drive or similar. Or using version control software, such as git or subversion.)

    History:

    Back in December 2017, @chcg summarized the history of the topic up to that point: https://notepad-plus-plus.org/community/topic/14945/rare-null-write-glitch/2, which @Scott-Sumner updated in January (https://notepad-plus-plus.org/community/topic/15112/attempt-to-recover-files-after-npp-blank-2-files-after-error-missed-the-error-msg/2)

    Since then, there have been at least a few more posts on the issue in this forum (incomplete):

    https://notepad-plus-plus.org/community/topic/15549/help-my-pc-crashed-while-editing-and-deleted-my-whole-document/2 https://notepad-plus-plus.org/community/topic/15531/nul-nul-nul-problem-notpad

    In March, I posted (https://notepad-plus-plus.org/community/topic/13302/fix-corrupted-txt-file-null/19) that I’d tried to force Windows to crash, but no matter what I did, I could not replicate the NUL-file issue. And @Scott-Sumner had tried the same thing some time earlier, as he revealed in the next post, with the same could-not-repeat-it results). This is a difficult issue to debug, and until someone steps forward with a reliable method of repeating it, it’s probably not going to get fixed.

  • Ensure named files saved on exit

    5
    0 Votes
    5 Posts
    2k Views
    Scott SumnerS

    @Greg-Smith

    Well, here’s the way I have mine set, and I get:

    session restore (to pick up with the files I was working with last time) prompted upon exiting to save any red tabs (unsaved files)

    Imgur

  • Previous installation not detected?

    Locked
    1
    0 Votes
    1 Posts
    785 Views
    No one has replied
  • removing whitespace between columns in a .txt data file

    Locked
    8
    0 Votes
    8 Posts
    14k Views
    Too GladT

    @Herb-Martin

    Many thanks Herb-Martin for your suggestion. Much appreciated.

  • Error on version 7.5.6 when exiting

    Locked
    1
    0 Votes
    1 Posts
    617 Views
    No one has replied
  • Need help mass replacing text.

    6
    0 Votes
    6 Posts
    2k Views
    Reece Asquith-JepsonR

    I have 2 versions of the same file one which has all text in Japanese and one has part Japanese and part English. i can upload both versions of my files if that would help with the explanation.

  • Windows 10 - Notepad 7.5.6 - File Associations is for Uninstall!

    Locked
    1
    0 Votes
    1 Posts
    764 Views
    No one has replied
  • Notepad automatic transfer problem

    Locked
    1
    0 Votes
    1 Posts
    920 Views
    No one has replied
  • Is there a way to easily list out (as text) the current key assignments?

    5
    2 Votes
    5 Posts
    2k Views
    Herb MartinH

    @Scott-Sumner “No” to such a question is very useful. If it is wrong then it will prompt someone to correct it, and as the correct answer will save time – we can stop looking and figure a workaround or spend energy elsewhere.

    I don’t do a lot of open source coding – not enough spare time to follow through fully, but this one MIGHT motivate me as it should be easy (the data is obviously there and even obviously in a form that would make it pretty easy since the key mapper shows it.)

  • 0 Votes
    1 Posts
    751 Views
    No one has replied
  • Scripts: Creating & Editing

    7
    0 Votes
    7 Posts
    27k Views
    MAPJe71M

    CS-Script plugin - uses C#-script language and is available for both 32 and 64 bit Notepad++.

  • TWO RESULTS IN A SAME LINE

    Locked
    2
    -1 Votes
    2 Posts
    860 Views
    Herb MartinH

    Can’t figure out what you want to replace exactly (from the description) but based on the title and general idea I 'll give an example that you might modify to achieve your real goal:

    I want to find lines starting with abc and change MISTeak later in the line to CORRECTED without changing anything else, using Replace dialog with Regular expresions:

    Find: ^(abc.*)MISTeak

    Replace: $1CORRECTED

    ^ start of line match only
    ( ) parens “capture” whatever is between them, you must write ( or ) if you need to match a real paren
    abc – match literally abc
    .* any characters, as many as are found including NONE.
    MISteak : those literal characters (can be marked case sensitive or not)

    $1 replace what you found in FIRST paren set, if you had () and () the $2 would be 2nd capture etc.

    Save your doc, try it, use undo if you make a mistake and if you seriously foul it up reload the saved doc from disk.

    Weakness (which can be fixed): What if MISTeak appears more than once in the line – there are ways to fix that too.

  • 0 Votes
    2 Posts
    829 Views
    Herb MartinH

    Two ideas:

    If you have Line numbers enabled then clicking out there selects an entire line and allows you to easily drag mark multiple lines.

    I didn’t know that until trying to answer your question so thanks for helping me learn something.

    When I select in the FIRST column and drag it marks lines – it’s easy to mark just on line that way or a long section, but then thatn’s the way I have been doing it for years, maybe decades (How long has NP++ been around?)
  • Failure in displaying Chinese characters

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • RegExpr search for utf8 chars not working anymore?

    Locked
    9
    0 Votes
    9 Posts
    3k Views
    EsboutiqueE

    @MAPJe71 Hi, you are quite right! Sorry for being such an IT-nitwit. But I will remember this for future questions, so thanks.

    Wasn’t my intention to get anyone to do my job, but I have spend to many days searching how to work with Notepadd++ that I have run out of time (so I put in my time and effort to get it down, but I cannot get aquinted with npp so quickly).

    I am really not good at forums and asking for help. I guess this was just a random panic reaction (also speaking the same language did it for me).
    I just found out that I can delete my messages so I will do so in order not to disturb the topic that I am posting this on. But just for getting this out to you, I quickly put it here.

    Thanks again and sorry for messing this topic up a little!

    Bye

  • Are there any plugins?

    Locked
    2
    -3 Votes
    2 Posts
    868 Views
    Jim DaileyJ

    … or even looking for them with a web search.

  • Problem with Encoding

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    PeterJonesP

    Based on the data you posted, I’d say your file was the binary format rather than the ASCII format – you might want to see if you can configure it to output ASCII instead. If it’s a binary file, then likely no general-purpose text editor (be it Notepad++, MSWin notepad, vi, emacs, …) will be able to natively recognize it. It’s not an “encoding” issue, in the same way that UTF-8 vs ISO 8859 vs Win-1252 vs …

    I think this question has nothing to do with Notepad++ (in that I think any other text editor – be it windows notepad.exe, vi, emacs, … – would give similar results when trying to open a binary file).

    I just spent 5 minutes via search engines and https://www.openfoam.com, and couldn’t quickly find a description of the output format(s) available. Sorry, that’s all the time I have to devote to it.

    My searches also revealed a forum at https://www.cfd-online.com/Forums/ . You may be able to post your question there: they might be able to help you either natively output to an ASCII text file, or to point you to a converter or post-processing manipulator to give you access to the coordinates.

  • how to move notepad++ on another PC

    Locked
    4
    0 Votes
    4 Posts
    17k Views
    Johnny De OliveiraJ

    Thank you for your answers, it work fine so.