Skip to content

Autocomplete does not insert parentheses/brackets for function completions #4086

@Jatin24062005

Description

@Jatin24062005

p5.js version

No response

What is your operating system?

None

Web browser and version

No response

Actual Behavior

When using the autocomplete hint in the editor and selecting a function suggestion (e.g. preload), pressing Enter or Tab only inserts the function name without the parentheses (). The expected behavior would be to insert the full signature like preload().

Image

Expected Behavior

The autocomplete should insert the complete function with brackets — preload()

Steps to reproduce

Steps:

  1. Open the editor
  2. Type function preload
  3. Wait for the autocomplete hint to appear
  4. Press Enter to accept the suggestion

Snippet:

// Paste your code here :)

Metadata

Metadata

Assignees

Labels

Area:EditorFor CodeMirror-related featuresFeature RequestProposal for adding a new functionality

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions