Community
    • Login

    How to change the Vertical Cursor (caret) color

    Scheduled Pinned Locked Moved General Discussion
    3 Posts 2 Posters 610 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.
    • James RichtersJ
      James Richters
      last edited by James Richters

      I am trying to get used to the new way that the vertical cursor does not return to a normal cursor when you move around with the arrow keys… I realize the solution is simple, just hit Esc… The problem is, the vertical multiline cursor is barely visible, and when I move around with the arrow keys, I don’t really see it anymore, so I forget it’s active. It would be really helpful if I could make it a brighter color that will catch my eye and remind me it’s active, so I can hit escape. I did make it wider which helps some, but even when I change the cursor (caret) to another color in settings, the vertical component remains grey.
      Screenshot 2024-05-06 115527.png

      Besides the vertical component now moving with the arrows, it does not stay vertical, as you can see if I move the selection above to another part of my document… it makes it even harder to realize it’s still in vertical editing mode when the cursor is no longer vertical.

      Screenshot 2024-05-06 120321.png

      I don’t know why it does this, I have no tabs in my document, only spaces and characters… so understand why the vertical cursor doesn’t remain aligned. There’s probably a reason, but in any case if I could change it to something more visible than grey it would be very helpful.

      If there is an option to change the color of the vertical part, I don’t know what it would be called, I would think it would have “caret” in the name, but I can’t find it.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @James Richters
        last edited by PeterJones

        @James-Richters said in How to change the Vertical Cursor (caret) color:

        The problem is, the vertical multiline cursor is barely visible,
        …
        I don’t know what it would be called, I would think it would have “caret” in the name, but I can’t find it.

        You can find it at: Settings > Style Configurator > Language: Global Styles > Style: Multi-edit carets color

        34c1def0-532d-4b9d-b800-8ef04ce4c69d-image.png

        If you don’t see that entry, that means that your stylers.xml or other theme didn’t get updated. If that’s the case, open the two files %AppData%\Notepad++\stylers.xml 🛈 (or the appropriate theme in the themes subdirectory – you appear to be using a theme, so will have to edit the right theme file) and the C:\Program Files\Notepad++\stylers.model.xml. Copy the “Multi-edit carets color” from near the end of stylers.model.xml, and paste it in the equivalent location in your active stylers.xml or themes\xxx.xml . Save, exit notepad++, and relaunch, and now it shold be
        f22bc48b-5e3c-4811-b1f1-2b666df8c62f-image.png

        here’s an example with that set to red:
        20933962-ffcc-4647-ac2e-91a49d7e9fc1-image.png

        And if you cannot find a good color, then Settings > Preferences > Editing 1 > Caret Settings allows you to change the width. Here’s an example with the red caret also being 2-pixels wide instead of the default 1:

        f9be7714-2802-4c03-b589-caf6eabce7f5-image.png

        James RichtersJ 1 Reply Last reply Reply Quote 1
        • James RichtersJ
          James Richters @PeterJones
          last edited by

          @PeterJones Thank you very much for the quick response and for the instructions on how to get the multi-edit carets color! Indeed I have a custom theme, and I did not realize it would not be updated automatically, or even that it was the theme that created the options in the style configurator.

          I added the line you suggested, as well as some others I noticed I was missing and it’s working GREAT now!

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