How do I stop ide to auto add () when I auto complete a function name

In JS depending on your (especially functional) style we may often use function names as values rather than function calls. When you auto complete a function name the IDE automatically adds "()" at the end. This means you have to remove these every time this happens when you don't want to call the function. I want to know how I can disable this feature, but in a way so that I am to get both "(" and ")", if I type "(" after the function name. Is this possible?

1
1 comment

there is no way to disable auto-adding parentheses when completing a function; we have a feature request for such option, see https://youtrack.jetbrains.com/issue/WEB-31404 and linked tickets. Usually it's not possible for the IDE to determine if you need a function call or reference; but, as in 90% cases it should be a call, WebStorm auto-inserts '()'. A reference is inserted in some special cases only (see https://youtrack.jetbrains.com/issue/WEB-12987#comment=27-807947, for example).

0

Please sign in to leave a comment.