Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Double-click on the bracket to select the text enclosed in brackets

    General Discussion
    4
    5
    520
    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.
    • AlekseyVarfalomich
      AlekseyVarfalomich last edited by

      I would really like to double-click on the opening or closing bracket to select the text enclosed in brackets. Moreover, it is possible to implement this both for ordinary brackets () and for [], as well as for {}, as well as for <>. Similar functionality is implemented in the AUTOCAD LISP editor, but only for (). With this function, it will be easy to check the correspondence of opening and closing brackets in the code.

      Alan Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @AlekseyVarfalomich last edited by

        @alekseyvarfalomich

        See:

        39abdfc7-7769-47a2-b01d-885fbed1df16-image.png

        or:

        2c91243a-bab5-4187-91fb-5482f9e5eb3f-image.png

        Doesn’t work for <…> though.

        PeterJones 1 Reply Last reply Reply Quote 3
        • PeterJones
          PeterJones @Alan Kilborn last edited by PeterJones

          @AlekseyVarfalomich

          Further to what @Alan-Kilborn said, if you have your cursor next to one of the [({})] characters (as was said, it doesn’t work for <>), then it will highlight that parenthesis/bracket pair (both the open and close) with the color defined in the Preferences > Style Configurator > Language: Global Styles > Style: Brace highlight style settings

          5e4aebfe-bf35-44e0-93af-f96909281f9c-image.png

          … but on re-reading, your question really is more about the selecting between the matching braces, so the second half of Alan’s answer is most likely what you want.

          AlekseyVarfalomich 1 Reply Last reply Reply Quote 5
          • AlekseyVarfalomich
            AlekseyVarfalomich @PeterJones last edited by

            @peterjones
            I found that with Ctrl+DblClck by () selects their contents. But it only works for () and does not work for {} and []…

            Michael Vincent 1 Reply Last reply Reply Quote 1
            • Michael Vincent
              Michael Vincent @AlekseyVarfalomich last edited by

              @alekseyvarfalomich said in Double-click on the bracket to select the text enclosed in brackets:

              @peterjones
              I found that with Ctrl+DblClck by () selects their contents. But it only works for () and does not work for {} and []…

              Yes, it’s configured here:

              176bc8c0-93d5-4177-934e-6d5296ec43c0-image.png

              Seems you can only pick 1 open and 1 close rather than a list of open / close options - like ( [ { and } ] ).

              Cheers.

              1 Reply Last reply Reply Quote 5
              • First post
                Last post
              Copyright © 2014 NodeBB Forums | Contributors