Details
-
Suggestion
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
None
-
None
-
That should be doable.
For the curly-braces, that could be done even in a "generic way" - we already have information about opening and closing parentheses.
#ifdef and friends are of course language specific.
Description
"jason
June 5, 2018 at 16:00
I liked the clazy stuff in 4.6, but found the implementation problematic. If this works, this will be amazing! Given the way the super-imposed suggestions are implemented, I wonder how hard it is for a a feature I’ve been requesting is? The feature is matching } with the opening so that
if (x==7) {
} [if( x==7)]
or
Rectangle {
id: background
} [ Rectangle id: background]
where the stuff in [ ] is superimposed." ( http://blog.qt.io/blog/2018/06/05/qt-creator-4-7-beta-released/ )
it should also be done with #if and #endif blocks. all too often coders hard-type those very same hints as C++ comments.
if there isn't enough room to show it superimposed in the editor, fall back to hover tooltip.
Attachments
Issue Links
- is replaced by
-
QTCREATORBUG-17516 Automatic closure commenting
-
- Reported
-