• Login
Community
  • Login

Hidden shortcut ctrl+} ?

Scheduled Pinned Locked Moved General Discussion
3 Posts 2 Posters 222 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.
  • Y
    ydqsbfsyi
    last edited by Dec 17, 2024, 6:23 AM

    increase line indent, i’d like to bind ctrl+} to this function, just like in VSCode. I tried bind another shortcut, and link ctrl+} to it with autohotkey. However, it failed, then I found ctrl+} seems to be a hidden shortcut in NPP, jumping to next code block (separated with blank line).

    Is that so? Any way to modify hidden shortcut? Please give me a hand.

    C 1 Reply Last reply Dec 17, 2024, 7:02 AM Reply Quote 0
    • C
      Coises @ydqsbfsyi
      last edited by Dec 17, 2024, 7:02 AM

      @ydqsbfsyi said in Hidden shortcut ctrl+} ?:

      increase line indent, i’d like to bind ctrl+} to this function, just like in VSCode. I tried bind another shortcut, and link ctrl+} to it with autohotkey. However, it failed, then I found ctrl+} seems to be a hidden shortcut in NPP, jumping to next code block (separated with blank line).

      Is that so? Any way to modify hidden shortcut? Please give me a hand.

      If you’re using a typical US keyboard, that would be Ctrl+Shift+], which on my installation is in Shortcut Mapper on the Scintilla Commands tab as #27, SCI_PARADOWNEXTEND. If yours is the same, you could remove it there, then add it on the Main Menu tab.

      However, you should be able to find this out by trying to add it on the Main Menu tab. On my system, if I select Increase Line Indent and attempt to add Ctrl+Shift+] the dialog tells me CONFLICT FOUND! and the text box at the bottom of the dialog shows:
      Scintilla Commands | 27 SCI_PARADOWNEXTEND (Ctrl+Shift+])
      which describes the conflict.

      If } is not Ctrl+Shift+] on your keyboard, then, of course, you’ll need to use whatever combination it is.

      If the base character (the one on the key) is not on the list of characters from which you can choose, then that sounds like a bug which should be reported.

      Y 1 Reply Last reply Dec 17, 2024, 8:55 AM Reply Quote 1
      • Y
        ydqsbfsyi @Coises
        last edited by Dec 17, 2024, 8:55 AM

        @Coises Oh, I see, shift+] = }
        Now it works.
        Much appreciated!

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