Am learning how to use the Firefox Web Extensions API, and am using IntelliJ.

Is there a way to get code completion / suggestions for the API?
I followed the steps in the answer below, but there doesn't seem to be a complete one for Firefox.
https://stackoverflow.com/a/25466708/5941389
Firefox WebExtension type stubs were added recently (Nov 2017) under the name firefox-webext-browser. The steps in the answer you linked are now valid (relevant changes in bold):
First time setup
- Open the
Settingsdialog (File>Settings)- Click
Languages & Frameworks>Javascript>Libraries- Click
Download- Make sure
TypeScript community stubsis selected- Select
firefox-webext-browserfrom the list (you can find it quickly by just typingfirefox-w)- Click
Download and Install- Click
OKto close the Settings dialog.In Subsequent Projects
- Open the
Settingsdialog again (File>Settings)- Click
Languages & Frameworks>Javascript>Librariesagain- Check
@types/firefox-webext-browser- Click
OKto close the dialog.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With