문제

Is it possible to get code-hinting in JetBrains WebStorm for a non-core node package? Specifically, I'd like to get hinting/completion working for buster. I can't seem to find any information on this. Thanks much!

도움이 되었습니까?

해결책

For buster.js, download buster-test.js and save it somewhere the WebStorm/PyCharm project can see it. Hinting should show up immediately.

다른 팁

WebStorm 2020.1

There's a trick to getting "coding assistance" for 3rd party packages that support community stubs (AKA Typescript definition files):

  1. Open the project's package.json
  2. Position the cursor on the package (within the dependencies section)
  3. Press alt+enter (or click the light bulb)
  4. Choose Install '@types/name' (where name is the dependency)

For example:

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top