Unsolved How to get rid of the little yellow bulb without disabling code completion?
-
It is really anoying since it will always cover some usefull fileds.
-
@GhostWin
Have you thought of appending the required;
(semi-colon) where the bulb is to get rid of the warning? :) I think it even tells you if you hover/click on it.... -
Hi
It means there is something it can fix for you.
It really is your friend.As
Say you add a new parameter to a function. -> Clicking on the bulb will
add the same parameter to the function declaration/implementation depending on where you are.You can use alt key+ enter to trigger it, making it fast to get rid of.
I'm not sure how it gets in the way. Can you explain how/why it's
annoying as for me it only comes after i stop typing and only if some issues
so i have not felt it was in the way. Not saying, it's not in the way for you, I just want to understand
in what cases? -
@JonB Yes, but we are not talking about this.
The problem is that the bulb appears everywhere. -
@GhostWin said in How to get rid of the little yellow bulb without disabling code completion?:
It is really anoying since it will always cover some usefull fileds.
Can you please elaborate more? What useful fields does it cover?
Anyway, you can get rid of the bulb by disabling the Clang Code Model plugin: https://doc.qt.io/qtcreator/creator-clang-codemodel.html#about-the-clang-code-model
-
@JKSH said in How to get rid of the little yellow bulb without disabling code completion?:
Anyway, you can get rid of it by disabling the Clang Code Model plugin
I don't think so. I believe that's the refactoring sub-menu, but it has never covered anything for me. It always appears at the end of the line.
-
@kshegunov said in How to get rid of the little yellow bulb without disabling code completion?:
@JKSH said in How to get rid of the little yellow bulb without disabling code completion?:
Anyway, you can get rid of it by disabling the Clang Code Model plugin
I don't think so. I believe that's the refactoring sub-menu, but it has never covered anything for me. It always appears at the end of the line.
The Clang Code Model does produce a bulb if a semicolon is missing, like in @GhostWin's example. The old code model doesn't.
-
@JKSH said in How to get rid of the little yellow bulb without disabling code completion?:
The Clang Code Model does produce a bulb if a semicolon is missing, like in @GhostWin's example. The old code model doesn't.
Okay. I don't use the clang code model, I get the light bulb when I change a declaration or a definition and it suggest to propagate the change for me.
-
@kshegunov said in How to get rid of the little yellow bulb without disabling code completion?:
Okay. I don't use the clang code model, I get the light bulb when I change a declaration or a definition and it suggest to propagate the change for me.
The humble lightbulb has been upskilling ;-) It indeed started its career as a tool to update function signatures, but it recently started to suggest fixes for code issues too (Qt Creator 4.14, IIRC)
But I have a similar experience as you: It only appears at the end of the line and never covers/blocks anything for me. That's why I (and @mrjj) asked @GhostWin to elaborate.
-
@JKSH said in How to get rid of the little yellow bulb without disabling code completion?:
The humble lightbulb has been upskilling ;-)
LOL :)