First Time Setup
-
Open the
Settings
dialog (File
>Settings
) -
Click
Languages & Frameworks
>Javascript
>Libraries
-
Click
Download
-
Make sure
TypeScript community stubs
is selected -
Select
chrome
from the list (you can find it quickly by just typingchrome
) -
Click
Download and Install
-
Click
OK
to close the Settings dialog.
Steps 2-6 illustrated below:
In Subsequent Projects
In any subsequent project, you just:
-
Open the
Settings
dialog again (File
>Settings
) -
Click
Languages & Frameworks
>Javascript
>Libraries
again -
Check
chrome-DefinitelyTyped
-
Click
OK
to close the dialog.
Steps 2-4 shown below: