JasonS
JasonS

Reputation: 7733

how to restrict autocomplete choices in webstorm?

i am trying out webstorm, and the autocomplete dropdown presents choices that are too verbose

for example:

enter image description here

how can I cut this down to a manageable level? as it is, autocomplete is useless for api discovery.

Upvotes: 15

Views: 913

Answers (2)

Nafiul Islam
Nafiul Islam

Reputation: 82600

As suggested by LazyOne, there is no real solution for this since JavaScript is a dynamically typed language. Webstorm tries to give you all possible options.

You might however, like to use Typescript, which essentially compiles to JS. The best option right now is to make a new topic on https://youtrack.jetbrains.com/issues

Upvotes: 1

pkt
pkt

Reputation: 1838

Try it with actual objects, preferably ones with JSDoc annotations. For ECMAScript/Node.js and similar basic stuff, Webstorm provides those annotations out of the box. In cases like that, auto-complete seems to work a lot better.

Upvotes: 1

Related Questions