Can I get intellisense for chrome apps and extensions?
S

2

5

Is there any way to get javascript IntelliSense for developing Google Chrome apps and extensions in Visual Studio 2012?

Sackcloth answered 1/2, 2014 at 2:40 Comment(0)
S
6

You can include this file found at GitHub: chrome.intellisense.js

place the file in the same directory as the file you are working on and add the following line at the top of your source file.

 /// <reference path="chrome" />

This also works in VS 2013 and should work in Visual Studio 2010 and 2013 as well, but is not tested.

Sackcloth answered 1/2, 2014 at 2:40 Comment(0)
C
3

Solution found on reddit

create file jsconfig.json with the following content

{"typeAcquisition": {"include": ["chrome"]}}
Cocainize answered 3/7, 2021 at 15:33 Comment(1)
Any Idea why this breaks the base intellisense? For example it doesn't recognize the Promise constructor when I add thisYacano

© 2022 - 2024 — McMap. All rights reserved.