4
我正在学习如何使用Firefox Web扩展API,并且正在使用IntelliJ。IntelliJ Firefox Web扩展开发
有没有办法让代码完成的API /建议吗?
我遵循了下面答案中的步骤,但似乎并没有完整的Firefox。
https://stackoverflow.com/a/25466708/5941389
我正在学习如何使用Firefox Web扩展API,并且正在使用IntelliJ。IntelliJ Firefox Web扩展开发
有没有办法让代码完成的API /建议吗?
我遵循了下面答案中的步骤,但似乎并没有完整的Firefox。
https://stackoverflow.com/a/25466708/5941389
火狐WebExtension型轴端名firefox-webext-browser
下最近添加(NOV 2017)。你挂在答案的步骤现在是有效的(以粗体显示的相关变化):
一次设置
- 打开
Settings
对话框(File
>Settings
)- 点击
Languages & Frameworks
>Javascript
>Libraries
- 点击
Download
- 确保
TypeScript community stubs
是sele反恐执行局- 选择
firefox-webext-browser
从列表- 点击
Download and Install
- 点击
OK
关闭设置对话框(您可以通过只输入firefox-w
快速找到它)。在后续的项目
- 打开
Settings
再次对话框(File
>Settings
)- 点击
Languages & Frameworks
>Javascript
>Libraries
再次- 检查
@types/firefox-webext-browser
- 点击
OK
关闭对话。