You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature Request] Autocomplete also inserts brackets at the end of functions() #2363
I did some research, and pretty much every other major language extension like javascript, c#/++ and python have settings to allow autocomplete to add brackets at the end of function calls. It would be nice to see this feature implemented in this extension.
As an example imagine I want to autocomplete the function foo, right now it autocompletes it as is, ideally it would autocomplete it as foo().
I checked the extension's settings thoroughly like 3 times for an hour before making this issue and no, no there isn't. You are probably confusing it for the "auto close brackets" setting that just adds a ) whenever you type a (, that's absolutely not what I'm talking about here.
I checked the extension's settings thoroughly like 3 times for an hour before making this issue and no, no there isn't. You are probably confusing it for the "auto close brackets" setting that just adds a ) whenever you type a (, that's absolutely not what I'm talking about here.
I checked the extension's settings thoroughly like 3 times for an hour before making this issue and no, no there isn't. You are probably confusing it for the "auto close brackets" setting that just adds a ) whenever you type a (, that's absolutely not what I'm talking about here.
Screen.Recording.2023-10-12.at.12.19.52.mov
like this?
Yeah! Sorta. It's more like this. Though maybe it could have a setting to just add the brackets, and a setting to autocomplete the arguments. The video is spliced for showcase purposes.
untitled.mp4
Reacted by SimplSam, João Paulo Albuquerque and distantforest
Adding a little +1 here. In the majority of cases when using functions (I'd say about > 95%) you're actually calling the function. The other 5% or less is for when you want to use closures and the sort. Setting code snippet to "Replace" is alright but I find it gets in the way a lot. Also if you have overloads it forces to select the function first before typing it out.
Activity
Frityet commentedon Oct 10, 2023
There's already an option that does this, I forgot what it's called though
AgentCucco commentedon Oct 10, 2023
I checked the extension's settings thoroughly like 3 times for an hour before making this issue and no, no there isn't. You are probably confusing it for the "auto close brackets" setting that just adds a
)whenever you type a(, that's absolutely not what I'm talking about here.Frityet commentedon Oct 12, 2023
Screen.Recording.2023-10-12.at.12.19.52.mov
like this?
AgentCucco commentedon Oct 12, 2023
Yeah! Sorta. It's more like this. Though maybe it could have a setting to just add the brackets, and a setting to autocomplete the arguments. The video is spliced for showcase purposes.
untitled.mp4
distantforest1 commentedon Jun 21, 2024
Adding a little +1 here. In the majority of cases when using functions (I'd say about > 95%) you're actually calling the function. The other 5% or less is for when you want to use closures and the sort. Setting code snippet to "Replace" is alright but I find it gets in the way a lot. Also if you have overloads it forces to select the function first before typing it out.
litoj commentedon Apr 8, 2026
You're looking for completion.callSnippet in https://luals.github.io/wiki/settings/?