IntelliJ Firefox Web Extension Development

Learning how to use the Firefox Web Extensions API, and using IntelliJ.

IDE: underlined JS: browser.browserAction.onClicked.addListener (() => {browser.tabs.executeScript (...

Is there any way to get code / sentence completion for an API?

I followed the instructions in the answer below, but for Firefox there seems to be no complete one.

stack overflow

+8
source share
1 answer

Recently, Firefox WebExtension stubs (November 2017) have been added firefox-webext-browser. The steps in the answer that you linked are now valid (the corresponding changes are shown in bold):

First time setting

  • Settings (File > Settings)
  • Languages & Frameworks > Javascript > Libraries
  • Download
  • , TypeScript community stubs
  • firefox-webext-browser ( , firefox-w)
  • Download and Install
  • OK, .

  • Settings (File > Settings)
  • Languages & Frameworks > Javascript > Libraries
  • @types/firefox-webext-browser
  • OK, .
+7

Source: https://habr.com/ru/post/1669422/


All Articles