Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. How to get rid of the little yellow bulb without disabling code completion?
Forum Updated to NodeBB v4.3 + New Features

How to get rid of the little yellow bulb without disabling code completion?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
10 Posts 5 Posters 1.6k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GhostWin
    wrote on last edited by GhostWin
    #1

    It is really anoying since it will always cover some usefull fileds.

    Screenshot at 2021-03-20 15-30-50.png

    JonBJ JKSHJ 2 Replies Last reply
    0
    • G GhostWin

      It is really anoying since it will always cover some usefull fileds.

      Screenshot at 2021-03-20 15-30-50.png

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @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....

      G 1 Reply Last reply
      3
      • mrjjM Offline
        mrjjM Offline
        mrjj
        Lifetime Qt Champion
        wrote on last edited by
        #3

        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?

        1 Reply Last reply
        3
        • JonBJ JonB

          @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....

          G Offline
          G Offline
          GhostWin
          wrote on last edited by
          #4

          @JonB Yes, but we are not talking about this.
          The problem is that the bulb appears everywhere.

          1 Reply Last reply
          0
          • G GhostWin

            It is really anoying since it will always cover some usefull fileds.

            Screenshot at 2021-03-20 15-30-50.png

            JKSHJ Offline
            JKSHJ Offline
            JKSH
            Moderators
            wrote on last edited by JKSH
            #5

            @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

            Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

            kshegunovK 1 Reply Last reply
            0
            • JKSHJ JKSH

              @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

              kshegunovK Offline
              kshegunovK Offline
              kshegunov
              Moderators
              wrote on last edited by kshegunov
              #6

              @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.

              Read and abide by the Qt Code of Conduct

              JKSHJ 1 Reply Last reply
              0
              • kshegunovK kshegunov

                @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.

                JKSHJ Offline
                JKSHJ Offline
                JKSH
                Moderators
                wrote on last edited by
                #7

                @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.

                Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                kshegunovK 1 Reply Last reply
                1
                • JKSHJ JKSH

                  @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.

                  kshegunovK Offline
                  kshegunovK Offline
                  kshegunov
                  Moderators
                  wrote on last edited by
                  #8

                  @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.

                  Read and abide by the Qt Code of Conduct

                  JKSHJ 1 Reply Last reply
                  0
                  • kshegunovK kshegunov

                    @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.

                    JKSHJ Offline
                    JKSHJ Offline
                    JKSH
                    Moderators
                    wrote on last edited by
                    #9

                    @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.

                    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

                    JonBJ 1 Reply Last reply
                    4
                    • JKSHJ JKSH

                      @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.

                      JonBJ Offline
                      JonBJ Offline
                      JonB
                      wrote on last edited by
                      #10

                      @JKSH said in How to get rid of the little yellow bulb without disabling code completion?:

                      The humble lightbulb has been upskilling ;-)

                      LOL :)

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved