V
V
Vladimir Golub2019-05-22 12:54:45
JavaScript
Vladimir Golub, 2019-05-22 12:54:45

Is it possible in webStorm to include the value of a variable when importing in autocompletion (js)?

At the very beginning I do import

import { colors, lineHeights } from '../../../DesignSystem/params';

When I set the lineHeights variable (this is an object), I see the properties of the object and its type, but there are no values ​​for them. Is it possible to turn it on somehow?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Chernyshev, 2019-05-28
@RazerVG

Unfortunately not, since any values ​​of variables (even constants) can only be retrieved at runtime

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question