Details
-
Suggestion
-
Resolution: Done
-
P4: Low
-
None
-
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
For Gerrit Dashboard: QTCREATORBUG-14380 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
216509,9 | Locator: Allow simple calculations by using QJSEngine | 4.6 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
216670,1 | Locator: Allow simple calculations with QJSEngine | 4.5 | qt-creator/qt-creator | Status: ABANDONED | 0 | 0 |