The editor in VS Code is very good. It is using https://github.com/Microsoft/monaco-editor (web based)