Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get auto complete suggestions on IDE while developing chrome extension using chrome api?

recently i am developing chrome extension. using js,html,css however for every action i am searching google for chrome.* api reference. is there any way to add extension for auto complete of chrome.* api methods in vscode?

like image 478
mathiarasan arasan Avatar asked Feb 19 '26 12:02

mathiarasan arasan


2 Answers

If you use Vscode, just create or update jsconfig.json at the root of project :

{"typeAcquisition": {"include": ["chrome"]}}
like image 178
kentuckyss Avatar answered Feb 22 '26 15:02

kentuckyss


Reference (User: ewwink): https://www.reddit.com/r/vscode/comments/93c2ez/chrome_extension_autocomplete/

Steps:

  1. Visual Studio Code
  2. File => Preferences => Settings
  3. User
  4. Extensions
  5. Under Activation on Language => click on settings. JSON
  6. Add the following inside the JSON

{"typeAcquisition": {"include": ["chrome"]}}

  1. Voila you're ready !

File => Preferences => Settings

settings. JSON => insert code (:

like image 25
Zaki Rashid Avatar answered Feb 22 '26 15:02

Zaki Rashid