George Sovetov
George Sovetov

Reputation: 5238

How to setup jQuery code completion with PyCharm and Django?

I love code completion and I want it to work everywhere. I tried to enable and disable JSHist and JSLint, to use explicit path to static libraries (without {{ STATIC_URL }}), enable and disable jQuery libraries in configuration, add the files that I use. But there is no effect.

Upvotes: 2

Views: 3022

Answers (2)

user19315471
user19315471

Reputation: 605

Installing @types/jquery didn't produce any code completion for me but I've managed to get jQuery recognised:

  • Download jQuery development version

  • In File | Settings | Languages & Frameworks | JavaScript | Libraries click Add and specify file path to the downloaded jQuery file

  • Name it, click OK

$ is now recognised and code completion works

Upvotes: 0

kot6egemot
kot6egemot

Reputation: 56

You need to open File | Settings | Languages & Frameworks | JavaScript | Libraries, tap Downloads, install "jquery" enter image description here

Upvotes: 4

Related Questions