How do I use WebStorm for Chrome Extension Development?

后端 未结 4 611
孤街浪徒
孤街浪徒 2020-12-04 06:05

I just bought WebStorm 5 and so far have been really enjoying its Inspection features. One hitch I\'ve run in to when developing my Chrome extension is that it doesn\'t reco

4条回答
  •  失恋的感觉
    2020-12-04 06:08

    First Time Setup

    1. Open the Settings dialog (File > Settings)

    2. Click Languages & Frameworks > Javascript > Libraries

    3. Click Download

    4. Make sure TypeScript community stubs is selected

    5. Select chrome from the list (you can find it quickly by just typing chrome)

    6. Click Download and Install

    7. Click OK to close the Settings dialog.


    Steps 2-6 illustrated below:


    In Subsequent Projects

    In any subsequent project, you just:

    1. Open the Settings dialog again (File > Settings)

    2. Click Languages & Frameworks > Javascript > Libraries again

    3. Check chrome-DefinitelyTyped

    4. Click OK to close the dialog.


    Steps 2-4 shown below:

提交回复
热议问题