[BETA] See documentation of any javascript api from mozilla on your visual studio code side by side
This extension lets you quickly bring up helpful MDN documentation in the editor by typing //mdn [api];
. For example, to see documentation for Object
, type //mdn Object;
, and to view a method or property, such as Object.assign
, type //mdn Object.assign;
. Don't forget the semicolon!
Load documentation of top level or global objects:
//mdn [api]; example: //mdn Array;
Load documentation of a method or property:
//mdn [api].[method];
example: //mdn Array.from;
[api]
and [method]
are case-insensitive, so //mdn array.from;
is also fine.
Yes! A search won't happen without it.
//mdn document;
//mdn Object.keys;
//mdn object.values;
//mdn Array.slice;
//mdn array.splice;
js
, vue
,jsx
, ts
,tsx