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

Allow simple calculations in the Locator

    XMLWordPrintable

Details

    • aaaa543a3250ab80e786fac8e26ea0d42ad8c927

    Description

      Similar to how Chrome allows for this in its address bar, it would be nice to have a cross-platform way to do simple calculations while coding without having to open various platform-specific calculators or Chrome.

      After hitting CTRL + K, you could type in:

      32 / 25

      And the first (and only) result would be 1.28.

      Until the Locator sees an operator such as "/", it would treat it as it normally does; "go to this line number".

      Or maybe there could be some special syntax, like wrapping the entire expression in parentheses:

      (32 / 25)

      Attachments

        Activity

          People

            aha_1980 André Hartmann
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: