Codesandbox-client: Main editor doesn鈥檛 take all settings in account

Created on 16 Aug 2017  路  6Comments  路  Source: codesandbox/codesandbox-client

The new Monaco editor is really cool, I love using it, but since it probably has a bunch of settings, it might be nice to take more of them in account.

  • show minimap (especially on a smaller screen, this takes a lot of space)
  • fontFamily (it seems to only apply in vim mode)

There are some other settings I use in VS Code on desktop, and would be nice if I could set some of those here too.

馃悰 Bug

Most helpful comment

Disabled the minimap by default for now, seems to have more issues than anticipated atm.

All 6 comments

The editor uses monaco-editor by default but when you switch to vim mode it switches back to the old codemirror editor. Seems like the fontFamily preference isn't properly setup with the new editor implementation.

As for the minimap, it can be configured with monaco's editor options using ICodeEditor#updateOptions. Default options are provided here.

Good info @Haroenv, will make the changes now. It seems like fontFamily broke along the way. Minimap should be an easy option to add thanks to the nice preferences system built by @viankakrisna.

Oh nice @Arthelon! You're making my job really easy 馃槃 .

Disabled the minimap by default for now, seems to have more issues than anticipated atm.

handled in #126

Was this page helpful?
0 / 5 - 0 ratings