Change JavaScript editor font (for FlowFuse)?

Hi. Is it possible to change the default font (type, size) of Monaco JavaScript editor? I tried to manually edit the specific node-red instance's settings.js file, but it is overwritten at instance boot. Thanks.

Hi @tnonas, welcome to the forum.

At present, this is not a setting we expose to the user.

As an interim workaround, you can do the following:

  1. Open any function or template or node that has a monaco editor
  2. With the cursor inside the monaco editor, hold CTRL and roll the mouse wheel to adjust the text size

This will remain set throughout your session for all instances of monaco

chrome_Ze3vcFT7kx

Hope that gets you by for now.


EDIT

Since font size it very personal, it should probably be stored in the users settings (not in flowfuse settings). Therefore I suspect any adjustment should be on a per user basis and part of Node-RED core (not flowfuse) for all to take advantage of.

Thank you @Steve-Mcl for the prompt reply. I agree that font type and size is very user-specific. It is also one of the first things any coder (or Sunday coder as myself) does. Maybe such option could be placed in a future in specific user settings on FlowFuse platform. I was mainly looking to change the font type as I do for my standalone node-red deployments.

Hi, how do you do it with a laptop and no scroll wheel ? I've tried various actions but the best I can get is a zoom on the whole page but then the scroll bars etc. disappear off the edge.
Also, where can I find settings.js ?

Thanks

Have you tried:

  • put cursor inside (click in text editor) and with mouse pointer still over it, 2 finger pinch zoom on the touch pad?
  • put cursor inside (click in text editor) and with mouse pointer still over it, hold CTRL and perform 2 finger scroll on the touch pad?
  • put cursor inside (click in text editor) press F1 (or ctrl-shift-p), search text or font or size?

Thanks for replying, the first one zooms the whole page and the other two do nothing.

What OS (windows/macos/linux) and browser (Chrome/firefox/safari/etc) are you using?

For me (windows + chrome) all 3 methods work.
chrome3EpsrphPgn