Bug 82633 - new feature: named argument visualization
Summary: new feature: named argument visualization
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: general (show other bugs)
Version: 1.0.0
Platform: RedHat Enterprise Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-01 12:41 UTC by Yao Ziyuan
Modified: 2009-01-24 01:23 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yao Ziyuan 2004-06-01 12:41:01 UTC
Version:            (using KDE KDE 3.2.90KDE 1.2)
Installed from:    RedHat RPMsRedHat RPMs
OS:                Linux

I propose a new IDE feature that optionally displays named arguments for every function call for better program text readability. This feature does not involve any substantial change to user source code, because it is just a visualization effect for the source code and provided by the code editor window.

Once the user enter a function name and '(', the IDE displays an embedded graphical table there. The table includes argument names and text fields where the user can view or fill the value or expression for each argument as illustrated below:

  r = myfunc(
        -------------------------------------
        | argname1:  ____argvalue1 here____ |
        | argname2:  ____argvalue2 here____ |
        | argname3:  ____argvalue3 here____ |
        | ...                               |
        -------------------------------------
      )

The argument table can be closed or expanded again.

This feature differs from Microsoft Visual Studio's "IntellSense" feature in that it uses a statically displayed embedded table rather than a dynamic tooltip to prompt the user of the argument list. It also makes it possible to align each argument name with its corresponding value field. This could better improve the code readability.

Further, there could be an argument order customization feature that allows the user to use mouse drag-drop to arrange the order of arguments in the table. The custom order information can be saved as a seperate file included by the user project. This feature is also a visualization one and does not actually modify the user source code.
Comment 1 Andreas Pakulat 2008-06-29 20:07:15 UTC
Not sure a table is needed, IMHO just filling out the parameters with "standard" names and then allowing to easily jump to the next/previous parameter with keyboard shortcuts is enough.