Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-26667

programmer needs a "balance ([], (), {})" function

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 6.0.0
    • Editors
    • None
    • All

    Description

      below, i will say "braces", but i mean either braces, parentheses, or brackets.

      as a programmer, i often want to "select enclosing braces", because i want to see the full scope surrounding where the caret currently is. i wish this function to select-all text between the enclosing braces, including the braces themselves

      eg: i click inside a scope, then press the keyboard shortcut for "balance", and the text surrounding the caret is selected out to the closest braces, in both directions. i can then press left arrow to get to the beginning or right arrow to get to the end. OR i could hit "balance" again, and it would then select the next outer scope, and keep hitting the "balance" key shortcut to eventually get to the braces that enclose the function i'm in.

      this is a very different workflow than "select from here to previous brace", which is of much less use than one that selects both backward AND forward.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            davschul David Schulz
            davecotter David M. Cotter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes