This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 271061 - JSdoc param tag autocomplete
Summary: JSdoc param tag autocomplete
Status: NEW
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Other
: P3 normal (vote)
Assignee: Petr Pisl
Depends on:
Reported: 2017-07-07 13:09 UTC by Eccenux
Modified: 2017-07-07 13:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Eccenux 2017-07-07 13:09:56 UTC
The tag `@param` autocomplete is not working as well as it could in JavaScript.

Example function:
 * Some name is a function someone didn't document params for.
function someName(button, text) {

Expected params available for automcomplete:
 * @param {type} button
 * @param {type} text

1. I type in `@par`. -> At this point I already should have all param names to select from (`button` and `text`). Netbeans has this information as it can add @param tag for newly created function comments.
3. Select `@param` from autocomplete.
4. Remove "type" and start typing "Element". -> Would be nice to have autocomplete here.
5. Press TAB (jumps to name).
6. Use CTRL+space combination. -> I should have param name autocomplete here.

Currently its sometimes faster to remove comment and start over. Some basic DOM types and basic JS types would be great for autocomplete. Netbeans seem to already "know" them, but I add links below just to show what I mean.

Basic JS data types:

Basic DOM types (interfaces):