Can anyone tell me please how to autocomplete jQuery methods in a TypeScript file in WebStorm / PhpStorm IDE?
I just need to autocomplete, not import jQuery. Because if I import like this
import * as $ from 'jquery';
in my .ts
file, then it includes
var $ = require('jquery');
in my generated .js
file.
Ok. Now my IDE autocompletes jQuery in .ts file automatically. I don't need to import any jquery reference. I don't know what happened first time. But now it's working automatically.
Thank you all.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.