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

Make auto-complete more context-aware of the text around it

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 2.3.1
    • Fix Version/s: None
    • Component/s: Editors
    • Labels:
      None
    • Environment:
      All

      Description

      This bug title is a bit vague, but I can give a concrete example of something that gets a bit annoying for me, that it would be great if Qt Creator could improve on:

      Often when connecting up SIGNALs and SLOTs, I'll copy-and-paste the connect() function from another line, then try and edit the SIGNAL and SLOT functions.

      I do this by double-clicking the name of the function, which selects the text up to the first "(".
      I then start typing for the new function, which is fine, but when I accept the auto-completion, Qt Creator puts "()" after it, even though there already is a "()" after the previous one, so now I have to delete one of them.

      It actually seems that Qt Creator inserts them in the wrong place anyway, making deleting one of them more confusing:

      for example, the end result I get is:
      connect(, , , SLOT(normaliseUVs())()));

      when I would expect to get:
      connect(, , , SLOT(normaliseUVs()()));

      BUT, it would be nice if I could just get:
      connect(, , , SLOT(normaliseUVs()));

      It would be nice if Qt Creator could detect this, and not both putting a superfluous "()" on the end of an auto-complete replacement.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            davschul David Schulz
            Reporter:
            ppearson Peter Pearson
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes