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

Auto completion after one character appends this character after insertion

    XMLWordPrintable

Details

    • Windows
    • ce27886eeb (qt-creator/qt-creator/7.0) ce27886eeb (qt-creator/qt-creator/master) ce27886eeb (qt-creator/tqtc-qt-creator/7.0) ce27886eeb (qt-creator/tqtc-qt-creator/master) ce27886eeb (qt-creator/tqtc-qt-creator/qds-3.1)

    Description

      Reproduce:

      QString* s;   // s is a pointer .. nevertheless I'm lazy and type '.' after s
                    // instead of '->'
      s.t<Cursor>   
      

      After typing the '.' I get a listing of possible methods to choose from.
      I type 't'.
      This gives me a auto completion pop-up with preselected 'toStdString() const',
      exactly what I want so I press <Enter>.

      The result is

      QString* s;
      s->toStrdString()<Cursor>t   //  '.' replaced by '->' OK, but what about the 't' ?
      

      so I get a 't' after the curser.

      If I'm not so lazy and type 'to' after the point. everything is fine.

      ps: Clang Code Model with exprimental Clangd activated.

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-27034
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            moellney Michael Möllney
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes