There is no code prompt when writing a Chrome extension with WebStorm. What should I do?
Asked
Active
Viewed 540 times
1 Answers
1
Installing @types/chrome
as suggested in How do I use WebStorm for Chrome Extension Development? should help:

lena
- 90,154
- 11
- 145
- 150
-
1For ManifestV3 I'd suggest using the [official package](https://www.npmjs.com/package/chrome-types) instead. It contains MV2 too, BTW. – wOxxOm Mar 03 '22 at 14:25
-
Thank for your answer. I tried adding everything with "chrome" in it yesterday and it still doesn't work. Today, it's ok.Probably need to restart webstorm.You may not believe it, after this method didn't work for me yesterday, I found some other methods and used it for almost a day...This is the method found, but there are some differences in some places. After seeing your screenshots today, I realized that the method I found this is feasible. – user18360894 Mar 03 '22 at 23:51
-
@wOxxOm and how to add it to webstorm? I'm just starting to learn from the official doc and there no package.json in the tutorials projects. – usertest Dec 08 '22 at 21:13
-
1@usertest, simply download/install the npm package in any local folder and then add it in webstorm preferences for libraries. Refer to the webstorm documentation for more info if necessary. – wOxxOm Dec 08 '22 at 21:28