• Notepad++ VS VSCode

    8
    0 Votes
    8 Posts
    5k Views
    Mark OlsonM

    To expand on Notepad++ (NPP) vs. VSCode as a general text editor, I tend to prefer VSCode for “find/replace in files” operations (it is much faster), but NPP has a more feature-rich regex engine, so there are many kinds of find/replace operations that are a lot easier in NPP. The macro system and ability to mark search results are also big time savers in NPP.

  • Best Plugins

    3
    0 Votes
    3 Posts
    318 Views
    Juan FeJ

    @PeterJones said in Best Plugins:

    I don’t know of any plugins that do anything specific to improve the C++ experience.

    QuickText or one of the other snippets programs for doing snippets of code to speed up coding.

    EditorConfig if you like having some file types indented with tabs and others with spaces (for example, using spaces in most source files, but using tabs in your makefile).

    And NppExec is great for doing a “build-then-run” sequence, which I think would be quite useful for C++ (you can search the forum for my posts that include NppExec and gcc for an example of how to set up such a build system.

    As a word of advice: this forum will work better for you if you ask specific, meaningful questions about how to use Notepad++ for a specific task (no, “coding c++” is not a specific enough task); and this isn’t the right place to ask general coding questions (“how do I do XXXX in C++?” is off topic in this forum). Your first two questions in the forum have been way too open ended (and you are giving off AI/bot-generated vibes, which doesn’t bode well for you, since moderators can ban accounts that even seem to be spewing AI nonsense.)

    Thanks, im new in this forum

  • 0 Votes
    4 Posts
    212 Views
    Ag JA

    Understood, thank you!

  • How to replace all numbered ID with a list of name in different languages

    5
    0 Votes
    5 Posts
    239 Views
    Farhan SyabibiF

    @Thomas-Knoefel
    I see, thanks i will try that later

  • 0 Votes
    8 Posts
    762 Views
    mkupperM

    @nkomarov said

    I wish this Shortcut Manager were open every time when someone presses Ctrl+T thrice or more in a row (obviously trying to open a new tab that way).

    That is an interesting idea though I’m not sure how a computer could best detect the difference between someone struggling to figure something out vs playing, exploring, seeing what looks better in the order of the lines, or taking advantage of the keyboard repeat to do something.

    Also, filtering for Ctrl+T works in the shortcut mapper. There is an irritation in that the filter results are only for the current tab meaning you need to flip through all the tabs using the mouse as there do not seem to be keyboard actions that let me flip through the tabs. Ideally, the filter thing would show the results for all tabs.

    Also, you need to type out the characters C t r l + T in the filter box and can’t do it via just a Ctrl+T on the keyboard to see what Ctrl+T is mapped to. At least the filter is not case sensitive.

  • Session File is either corrupted or not valid

    2
    0 Votes
    2 Posts
    133 Views
    PeterJonesP

    @Pim-Veld

    I am betting that weekmenu.html is an HTML file that you want to open, not a session file which contains a list of files to open in Notepad++'s XML-based session-file format.

    If you want to edit an HTML file named D:\Users\Pim\Documents\Websitemap KH\Kookhulp iPad\weekmenu.html, then you just run notepad++.exe "D:\Users\Pim\Documents\Websitemap KH\Kookhulp iPad\weekmenu.html"

    The -openSession command-line option needs to point to a specific session file (which is in Notepad++'s specific session-file XML syntax) which points to one or more files to open (you can create those files through File > Save Session…). It is for opening multiple files at once from a previously-saved session.

    Learn more about Notepad++'s session feature in the “Sessions” section of the Online User Manual

  • Insert Unicode characters not working - please help

    19
    0 Votes
    19 Posts
    5k Views
    Alan KilbornA

    @hfrmobile said in Insert Unicode characters not working - please help:

    that this setting was true per default on one machine, but false on others

    It would depend on what version was first installed on each of these machines.
    Recently, DirectWrite was defaulted to On for new installs, whereas on older versions, it was defaulted to Off.
    So yes, “true per default on one” and “false on others” is perfectly understandable.

  • Mark entire numbers starting in a specific pattern

    3
    1 Votes
    3 Posts
    170 Views
    Documentum UpgradeD

    @Alan-Kilborn I’ve been searching for this for half a day.
    Thank you very very much!
    Bless you

  • Click function, go to fctn put cursor near top of window

    7
    0 Votes
    7 Posts
    260 Views
    Alan KilbornA

    @PeterJones said in Click function, go to fctn put cursor near top of window:

    In your opinion, should @C-Bacca just upvote your “caretpolicy” request, or should a new Feature Request

    I would make this a new feature request, but anybody that would take on implementation might have a look at the caret-policy issue and see if 2-birds-1-stone could be effective.

  • Open in default viewer is grayed out

    6
    0 Votes
    6 Posts
    911 Views
    mkupperM

    @Alan-Kilborn I was commenting more about the “Its simple …” comment as it was both not simple, and the suggestion provided would not have fixed the OP’s issue. Your initial post in 2023 explained what likely was happening at the time and your post today about Reload from Disk is an additional confirmation that your explanation in 2023 was correct.

    I was wondering if the Notepad++ manual explained the grayed out aspect and discovered it documents six reasons for why Open in default viewer can be grayed out.

  • Get status bar text (PythonScript)

    3
    1 Votes
    3 Posts
    212 Views
    D

    @PeterJones

    Works perfectly, thank you.

  • Copy sentence with increasing number every time

    3
    0 Votes
    3 Posts
    225 Views
    Echodollyx3E

    @Alan-Kilborn
    Okay it was easier than I though, it worked haha
    Thank you so much!

  • Execute bat-file from Notepad++

    4
    0 Votes
    4 Posts
    879 Views
    AntonA

    Thank you!

  • Feature Request Link Pop-Up Window

    4
    0 Votes
    4 Posts
    339 Views
    Alan KilbornA

    And another (new) one, which shouldn’t have been opened because the petitioner is the same: https://github.com/notepad-plus-plus/notepad-plus-plus/issues/15570 and has no excuse for opening a duplicate issue (clearly they knew of an already existing issue for it).

  • 0 Votes
    8 Posts
    860 Views
    PeterJonesP

    @mkupper said in Using EOL Windows Mode, pressing enter at end of line only puts a CR with no LF:

    @Chris-Zimmer What’s on the right side of your Notepad++ status line? Is it Windows (CR LF) or something else?

    You might want to check the dates. The user you @-mentioned asked the question in January 2020. Either Alan’s reply was helpful, or they’ve moved on to something else in the 4.5 years since asking about it. :-)

    Further, the title they assigned, “Using EOL Windows Mode, pressing enter at end of line only puts a CR with no LF” seems pretty explicit that the status bar would indicate Windows (CR LF).

    Both the original poster and the recent re-vivifier appear to have been dealing with a known (but often forgotten) “feature” of Notepad++, that if you remove the Enter shortcut from SCI_NEWLINE, that the ENTER key just inserts the CR, regardless of the newline settings (because it’s SCI_NEWLINE, not the ENTER key itself, that handles the per-setting newline insertion).

  • Looking for Title Case

    3
    0 Votes
    3 Posts
    362 Views
    guy038G

    Hello, @daniel-combs, @mark-olson and All,

    @daniel-combs, have also a look to this old post, below :

    https://notepad-plus-plus.org/community/topic/130/convert-case-to/4

    Best Regards,

    guy038

  • Repeated capturing groups

    7
    1 Votes
    7 Posts
    624 Views
    guy038G

    Hi, @joe-mccay, @coises, @mark-olson, @mkupper and All,

    Ah… yes, the @mkupper’s formulation of the search regex is very clever and quite clear, thanks to the free-spacing mode !

    I particularly like :

    The (?:,((?1)))? syntax, where you join the optional states of, both, the (?1) form and the comma

    The use of the leading i modifier to simplify the group 1 syntax

    Bravo !!

    BR

    guy038

  • How to disable cursor jumping to line start?

    4
    0 Votes
    4 Posts
    1k Views
    mkupperM

    @Valurian said in How to disable cursor jumping to line start?:

    When I click anywhere in a line the cursor is not currently in, and the beginning of the line is not currently visible, the window auto navigates to the start of the newly clicked line while also highlighting all the text between where I clicked and where the mouse pointer is hovering when this happens.

    I think I understand what you described. Let’s say we have:

    1 Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua 3 Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat 4 Duis aute irure dolor in dolore eu fugiat nulla pariatur 5 Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum

    I made line 4 shorter than the usual lorem ipsum text. and added added a blank line at line 2. Copy/paste that into Notepad++ and resize the Notepad++ application so that is is narrow. Use the slider on the bottom of the Notepad++ window to scroll the window so that line 4, the short one, is no longer visible.

    Click in the white area that is line 4. Notepad++ will position the text cursor or caret at the end of line 4 and will jump the window so that one pixel of the character at the end of line 4 along with the caret or text cursor are is visible. The text cursor or caret will be at the very left edge of the visible window, but it’s not at the start of the line.

    Now click in the white area that is line 2, the empty one. Notepad++ will position the text cursor or caret at the end of line 2 and will jump the window so that the text cursor or caret is visible. As line 2 is empty we effectively jumped to the start of the lines.

    @Michael-Mazur suggested Enable virtual space in the preferences which is a good way to prevent Notepad++ from placing the text cursor or caret at the end of a line when you click in the area past the end of a line. This also means the Notepad++ window will not be jumped so that the text cursor or caret becomes visible. Virtual space mode may cause some surprises if you start typing in the empty space past the end of a line as Notepad++ will then silently add tabs and or spaces to pad the lines o that the text you added past the end of the line is at the column you clicked. If the line is empty Notepad++ pads with tabs and then spaces if needed. If the line already has text then Notepad++ pads with spaces.

    That all does not explain “while also highlighting all the text between where I clicked and where the mouse pointer is hovering when this happens” unless you have the shift key held down when you are clicking.

  • Create macros

    12
    0 Votes
    12 Posts
    614 Views
    PeterJonesP

    @victor said in Create macros:

    I need your help again, because there are new situations

    What about my previous solution doesn’t work for this one? What have you tried, what did it do, and what about the results didn’t match your desires? It’s not “help” if I just do all the work for you.

    ----

    Please note: This Community Forum is not a data transformation service; you should not expect to be able to always say “I have data like X and want it to look like Y” and have us do all the work for you. If you are new to the Forum, and new to regular expressions, we will often give help on the first one or two data-transformation questions, especially if they are well-asked and you show a willingness to learn; and we will point you to the documentation where you can learn how to do the data transformations for yourself in the future. But if you repeatedly ask us to do your work for you, you will find that the patience of usually-helpful Community members wears thin. The best way to learn regular expressions is by experimenting with them yourself, and getting a feel for how they work; having us spoon-feed you the answers without you putting in the effort doesn’t help you in the long term and is uninteresting and annoying for us.

  • How to I paste external text into Wordpad++ Vertically ?

    9
    0 Votes
    9 Posts
    406 Views
    CoisesC

    @L-Winters said in How to I paste external text into Wordpad++ Vertically ?:

    @Coises I’m not very computer savvy unfortunately so are you and @rdipardo suggesting that there is a way that I can add the command to my Notepad++?

    No. That little side discussion had to do with the programming behind Notepad++. It’s irrelevant to end users.