Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • S

      Anyone Here Use Notepad++ for Large Files?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      18 Views
      Mark OlsonM
      @steeve-wick The most important things IMHO are: not to open huge single-line files with Notepad++ (henceforth NPP). NPP has several routines that reread the entirety of every line currently visible whenever the user does basically anything, so for example a file with a single 30MB line might be slower to navigate and edit than a 100MB file where every line is less than 1KB. as a corollary, if you have a large single-line file in a storage format like JSON or XML that can be pretty-printed, you may want to pretty-print it and re-save it (JsonTools is good for JSON, and IIRC XML Tools is good for XML, but I assume the command line is faster than either). This will make the document easier to read while also improving NPP’s performance, at the cost of taking up more space on your hard drive. Make sure that Settings > Preferences... > Performance > Large File Restriction is set to some reasonably low number (I prefer 64), since syntax highlighting can really slow down processing of files. In my experience, it doesn’t help performance much to turn off word wrap for huge files, so I would leave Deactivate Word Wrap globally unchecked Try using the HugeFiles plugin for really enormous files if you tried opening them in NPP and the editor was super unresponsive. At the time of writing, HugeFiles can only open UTF8-encoded files, but it allows very fast navigation of any file. It even allows chunking of JSON arrays, although that is currently pretty slow. For global find/replace actions in any large file, I strongly advocate for using the command line or your favorite scripting language rather than opening them in any text editor (including Notepad++) and using the text editor’s find/replace functionality. The point of a text editor is that you can easily scroll through a file and do a sanity check to make sure that for example a find/replace action made appropriate changes. But those advantages don’t really apply when you have a 400MB file and the find/replace action is going to make 30,000 replacements. At that point you are much better opening a Python session and taking advantage of its full Turing-complete power to test the waters before committing to a change. If you suspect that a plugin is causing performance issues, try disabling that plugin. Be careful about plugins that automatically do costly actions like parsing the entire file when you open a file. If the plugin has a setting to disable automatically doing things like that, turn that setting off. Alternatively, switch to a similar plugin that doesn’t automatically freeze Notepad++ when you open a ginormous file.
    • CoisesC

      Search++: A work in progress

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      217
      7 Votes
      217 Posts
      88k Views
      guy038G
      Hello, @coises, Many thanks for this new release ! The new Spy (temporarily show hidden lines) is interesting as it allows to see all context lines at a glance ! The fact that the Mark, Select, Show and Spy fonctionalities work per tab is really a plus, too ! Now, after UNCHECKING : In the Settings > Selections section, the Default commands automatically search within selections. option In the Setings > Marked and shown text section, the Default commands automatically search within marked text. option In the Settings > Focus section, all the options, as below : [image: 1793811069736-8f4105b6-e7cb-438c-8333-77ae6fc2dd2b-image.jpeg] All the following commands keep focus to the Search++ dialog and do the following actions : Alt + F Finds the NEXT occurrence of the SEARCH string, in current file Alt + Shift + F Finds the PREVIOUS occurrence of the SEARCH string, in current file ( when 'PLAIN' button selected ) Alt + R Replaces the NEXT occurrence of SEARCH string, in current file Alt + A Displays ALL occurrences of the SEARCH string, from current file, in the 'Find Results' panel ( CANCEL with Ctrl + Shift+ R ) Alt + C Counts ALL occurrences of the SEARCH String, in current file Alt + E Replace ALL occurrences of the SEARCH string by the REPLACEMENT string, in current file ( when 'PLAIN' or 'REGEX' button selected ) Alt + H Shows ALL lines containing an occurrence of the SEARCH string, in current file ( CANCEL operation with Ctrl + Shift + A ) Alt + K Marks ( and possibly boobmarks ) ALL occurrences of the SEARCH string, in current file ( CANCEL operation with Ctl + Shift + C ) Alt + S Select ALL occurrences of the SEARCH string, in current file ( NO CANCEL operation provided, so far ? ) ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Alt + D Toggles 'Dot matches line Breaks' option ( when 'Regex' or 'ICU' button selected ) Alt + G Toggles 'Free Spacing' option ( when 'Regex' or 'ICU' button selected ) Alt + M Toggles 'Match case' option Alt + U Toogles 'Unicode Word boundaries' option ( when 'ICU' button selected ) Alt + W Toggles 'Whole word only' option ( when 'PLAIN' button selected ) ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Alt + P Selects 'PLAIN' button Alt + X Selects 'REGEX' button Alt + I Selects 'ICU' button Alt + T Toogles 'TOOLS' button contents Alt + O Toogles between the 'FIND' and 'REPLACE' dialogs ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Alt + Shift + 1 Opens the FIND drop-down menu Alt + Shift + 2 Opens the COUNT drop-down menu Alt + Shift + 3 Opens the FIND ALL drop-down menu Alt + Shift + 4 Opens the REPLACE drop-down menu Alt + Shift + 5 Opens the REPLACE ALL drop-down menu ---------------------------------------------------------------------------------------------------------------------------------------------------------------- Alt + L Displays the N++ 'Language' menu Alt + N Displays the N++ 'Encoding' menu Alt + V Displays the N++ 'View' menu ---------------------------------------------------------------------------------------------------------------------------------------------------------------- ALT + B Nothing ALT + J Nothing ALT + Q Nothing ALT + Y Nothing ALT + Z Nothing As you can see, the different drop-down menus are opened with an Alt + Shift + ... shortcut ( and not with an Alt + ... ) ! I suppose, you did something wrong while attributing these 5 shortcuts, didn’t you ? Best Regards, guy038
    • donhoD

      Notepad++ v8.9.9 Release Candidate

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      25
      5 Votes
      25 Posts
      1k Views
      andrecool-68A
      The new position of the up/down button is very inconvenient. (you constantly confuse it with the forward/backward search buttons) The most convenient place for it is next to the button that closes this search panel. (that’s where it belongs!) [image: 1793805620840-%D1%81%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA.png]
    • fml2F

      How to fold while at the closing element?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      154 Views
      rdipardoR
      @fml2 said: Out of interest: is it possible to configure Notepad++ in a way that the folder marks are also displayed at the last element of the structure? The document’s fold structure is determined by the underlying Scintilla editing component. Notepad++ simply visualizes the fold structure. While some alternative styles can be enabled at the application layer, what you’re requesting would require changes to Scintilla.
    • J

      Duplicate context menu entries

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      1
      1
      0 Votes
      1 Posts
      51 Views
      No one has replied
    • S

      Windows 11 constantly crashing when having NP++ installed

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      1
      0 Votes
      1 Posts
      46 Views
      No one has replied