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

Add parameter inlay hints in QtCreator for C++

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 15.0.0
    • None
      • Independant of the platform, QtCreator runs (Windows, Linx, MacOS)
      • Independant of the QT-version
      • Independant of the C/C++ compiler (gcc, mingw, clang, MSVC)
    • Linux/Wayland, Linux/X11, macOS, Windows

      Add the option to show parameter hints for arguments of C++ function and methods.

      I.e. show the parameter names from function / method declaration while calling the function in the editor.

       

      E.g. funtion declaration:

      <ret_type> foo(type1 arg1, ...);

       

      In the editor, when the function is called, one would write e.g.:

      <ret_type> res = foo(var1, ...);

       

      With parameter hints, the editor will show:

      <ret_type> res = foo(arg1: var1, ...);

      Notice the arg1: infront of the parameter var1

      It is good to make this functionallity optional, since there may be programmers feeling the screen be "cluttered".


       

      A good description is available from JetBrains for their IDEs: 

      https://www.jetbrains.com/help/idea/inlay-hints.html

       

      In a essence it mimics "named" parameters for C/C++.

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

            kandeler Christian Kandeler
            d029940 Manfred Kern
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes