You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Using the Monaco Editor in a browser without VSCode #446
I would really like to use this editor in my own web application for editing TypeScript files. The only problem is I can't find any documentation about how to do this. I know its possible because the editor is on TypeScript Playground and a few other places.
As far as I can tell, the open sourcing of VS Code is the first time the source code of the Monaco editor has been made public. Also, I think that the VS Code repository is the primary source of the Monaco editor (someone from Microsoft please confirm?).
So far, there have been many questions about using the Monaco Editor on Stack Overflow and other forums, but I have yet to see an official reply from Microsoft.
Can someone please provide some documentation on using the Monaco Editor in a web site, or perhaps release the source code of TypeScript Playground(There is nothing to hide now that we have the Monaco source in the VS Code repository).
Currently, the only thing keeping me from using TypeScript as a JavaScript replacement is the fact that I can't easily use the Monaco Editor inside of my web application. I'm currently using the ACE Editor with a Tern plugin I created. I don't want to go through all of the work of creating full Intellisense support for TypeScript inside of ACE because its a significant undertaking- Instead I'd rather contribute to the Monaco editor and use it as a replacement for ACE (and replace JavaScript with TypeScript).
Reacted by Maxime Quandalle, Nicolas Penin, Wiktor Kwapisiewicz, Aljeksej Jaroševič, Remo H. Jansen, Connor Shea, dlants, Eli Grey, Sanders Lauture, Tomáš Hübelbauer and 31 more
+1 for this. Doing proper context code completion in CodeMirror and Ace is a nightmare. An open source editor that had good hooks to this kind of thing would be gold. We just need some docs on using it ;)
sevin7676 you are correct that the Monaco editor is contained in the vscode repository and we are working on making the Monaco Editor more easy to consume independent of VS Code.
Reacted by Foo, Thaina, lewcpe, Burak Büyükatlı, Abhinav Gauniyal, Alexey Yakovlev and Jef King
+1
Any news on this? I'm waiting for this so I can embed the editor on our product's config page where the user can edit custom TypeScripts that are run on a server and provide our API definition.
Thanks!
Erich Gamma (@egamma) Thanks a lot for your Q&A yesterday in Shanghai. I read the plan and looks like Monaco will be a separate repo? is this happening already? Can we have the URL?
Activity
[-]Using the Monaco Editor without VSCode[/-][+]Using the Monaco Editor in a browser without VSCode[/+]mackenza commentedon Nov 22, 2015
+1 for this. Doing proper context code completion in CodeMirror and Ace is a nightmare. An open source editor that had good hooks to this kind of thing would be gold. We just need some docs on using it ;)
egamma commentedon Nov 22, 2015
sevin7676 you are correct that the Monaco editor is contained in the vscode repository and we are working on making the Monaco Editor more easy to consume independent of VS Code.
lzantal commentedon Nov 23, 2015
+1 making some docs on Monaco editor. So far this editor beats both codemirror and ace :)
malekpour commentedon Dec 15, 2015
This is almost same as #815
JoshClose commentedon Dec 18, 2015
I'm eagerly awaiting this also. Don't forget to close this UserVoice suggestion when it's complete. https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7782546-release-monaco-javascript-code-editor
bobzhang commentedon Dec 27, 2015
+1, the other options like codemirror or ace does not even come close compared with typescript playground
pawsong commentedon Dec 29, 2015
+1 Waiting for this!
T18970237136 commentedon Jan 22, 2016
+1
Any news on this? I'm waiting for this so I can embed the editor on our product's config page where the user can edit custom TypeScripts that are run on a server and provide our API definition.
Thanks!
egamma commentedon Jan 22, 2016
It is still on our backlog but it didn't make the cut for the GA milestone, sorry.
23 remaining items
ups216 commentedon Jun 3, 2016
Erich Gamma (@egamma) Thanks a lot for your Q&A yesterday in Shanghai. I read the plan and looks like Monaco will be a separate repo? is this happening already? Can we have the URL?
BTW: hope you had a great time in China :)
basarat commentedon Jun 3, 2016
Lei Xu (@ups216) its been done https://www.npmjs.com/package/monaco-editor-core which is just shipped (pushed to npm) from this repository and I'm experimenting migrating alm to it as well alm-tools/alm#120 🌹
jokeyrhyme commentedon Jun 3, 2016
Basarat Ali Syed (@basarat) have you considered using something like https://github.com/lerna/lerna to help manage the mono-repo approach (single repo, multiple npm packages) ? Do you think there will be other goodies in VSCode that make sense to extract as separate npm packages?
Sevin777 commentedon Jun 16, 2016
It looks like progress is being made on this :)
https://code.visualstudio.com/updates#vscode

jonathanhotono commentedon Jun 18, 2016
+1 looking forward to get the full Javascript solution of vscode. This is exciting!
maxdec commentedon Jun 20, 2016
\o/ https://github.com/Microsoft/monaco-editor
Sevin777 commentedon Jun 20, 2016
Maxence (@maxdec) , thank you for the link.
The issue is now resolved!
https://github.com/Microsoft/monaco-editor
basarat commentedon Jun 21, 2016
Just made a release of alm that uses monaco :
0.1.0. Let me know how it goes 🌹jokeyrhyme commentedon Jun 22, 2016
Will VSCode use this newly extracted Monaco? Will they be synchronised? Will they diverge?
scottlu commentedon Sep 29, 2016
GHEdit is a project that has "ported" large sections VSCode to run in a browser. If you have an interest in doing that here is the project page:
https://github.com/spiffcode/ghedit
It's targeted at editing, searching, and browsing Github repos. Live version:
https://spiffcode.github.io/ghedit