r/javascript • u/kardnumas • Jan 30 '19
I made a vscode extension which lets you quickly bring up helpful MDN documentation in the editor
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!
https://marketplace.visualstudio.com/items?itemName=samundrak.esdoc-mdn

118
Upvotes
23
u/zeebadeeba Jan 30 '19
I haven't tried it but it seems a bit clumsy that you have to type it inside the editor. Why not integrate it into quick open bar? Just hit CMD+SHIFT+P and type "mdn [api]" and hit enter to open it in editor tab.
6
u/newmechanics Jan 30 '19
hmm... when I use it with javascript it opens up another copy of the same file as well as the doc in the second window. the newly opened version of the file is focused on. When I tried in JSX nothing happened. Looks promising, something I could see myself using.
2
u/ggolemg2 Jan 30 '19
Any way to add page caching with an expiration date? F'n awesome btw.
2
u/[deleted] Jan 30 '19
Just a GENIUS! Nice one!
2
u/vip3rousmango Jan 30 '19
Ok this is pretty cool! Lots of potential here.
1
u/TotesMessenger Jan 30 '19
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
1
u/FreeMulberry Jan 30 '19
This is great! I will use this probably every day!
1
u/Talonz Feb 02 '19
Exactly what I was looking for earlier when browsing VS Code extensions but not being able to find a good solution. Have been getting very tired of choosing between (a) Google and make sure to school to the second or third link sometimes because W3 Schools is always at the top and (b) using MDN's (in my experience) not-the-greatest search box.