R
R
Rqik2020-05-27 04:58:30
Visual Studio Code
Rqik, 2020-05-27 04:58:30

How to make hints pop up in VSCode for working with the DOM tree in JS?

How to make hints pop up in VSCode for working with the DOM tree in JS?

Works but still not right.
5ed00a882daa9027642576.png
If the object is created this way, tooltips still don't pop up.
If through then it worksdocument.createElement('div')
5ed00b5accd0b820166712.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Shvets, 2020-05-27
@Xuxicheta

create a file in the root of the project jsconfig.json
with the following minimum content

{
  "compilerOptions": {
    "lib": [
      "dom"
    ],
  },
}

This is a tsconfig file, only vscode supports this for js too

R
Rqik, 2020-05-28
@Rqik

Found JS Parameter Annotations plugin
Works but still not right

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question