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

Prioritize autocomplete items

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • None
    • Editors
    • None

    Description

      In Clion IDE we have following behavior.
      1) User enter following code

      vector<int> vi;
      
      vi.p
      

      2) User uses autocomplete for "vi.p" expression and get following autocomplete items(in alphabet order):

      pop_back //on first position
      
      push_back // on second position
      

      3) User choose second item (push_back) and get following result:

      vi.push_back(1)

      4) When user uses autocomplete for "someVectorObject.p" expression next time, autocomplete system provides following autocomplete items:

       

      push_back //on first position
      
      pop_back // on second position
      

      5) "push_back" at first position so user just press enter for this item without pressing arrow down.

       

      I think it is good behavior because developers use some method a lot of times but don't use some other methods in code. So prioritizing frequently used methods in autocomplete list will speed up code writing. It is small but nice feature.

      In Qt Creator we have only alphabetic order in autocomplete items list.

       

      Attachments

        1. CLion.png
          CLion.png
          57 kB
        2. QtCreator.png
          QtCreator.png
          85 kB

        Issue Links

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

          Activity

            People

              davschul David Schulz
              laruscat Ruslan Larionenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes