# Updated coding window node-red editor

**URL:** <https://discourse.nodered.org/t/updated-coding-window-node-red-editor/87576>\
**Category:** General\
**Tags:** editor\
**Created:** [29 April 2024 07:42 UTC](https://discourse.nodered.org/t/updated-coding-window-node-red-editor/87576 "2024-04-29T07:42:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![verkerkGIT](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/verkerkgit/32/90542_2.png) [@verkerkGIT](https://discourse.nodered.org/u/verkerkGIT)\
**Post date:** [29 April 2024 07:42 UTC](https://discourse.nodered.org/t/updated-coding-window-node-red-editor/87576/1 "2024-04-29T07:42:57Z")

</div>

Hi, when I install node-red on a raspberry pi, or some other devices I get a neat code editor with autocomplete, code hints etc, kind of like a Visual Studio environment. However on my main machine I only have a older looking more simple editor. What do I need to update in order to get this to be the new editor?  
My old looking editor:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/9/2972f305abecc1bcb3ddab75ec226fab76425944.png)

The newer looking editor

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/2/826d87e1a73e05c565a8d7f71fafb7c76079afa1.png)

My node-red version is 3.1.9, NodeJs: 20.12.2 and npm: 10.6.0.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [29 April 2024 08:00 UTC](https://discourse.nodered.org/t/updated-coding-window-node-red-editor/87576/2 "2024-04-29T08:00:41Z")

</div>

In your machines with the older ACE editor, your node-red version is either v2.x or there is a setting in settings.js forcing the old editor to be used.

See this: [Getting the monaco editor to work in NR 2.x - #33 by Steve-Mcl](https://discourse.nodered.org/t/getting-the-monaco-editor-to-work-in-nr-2-x/65466/33)

Ps: did you also update Node-RED on the main machine?

---

<div class="post-metadata">

**Author:** ![verkerkGIT](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/verkerkgit/32/90542_2.png) [@verkerkGIT](https://discourse.nodered.org/u/verkerkGIT)\
**Post date:** [29 April 2024 08:18 UTC](https://discourse.nodered.org/t/updated-coding-window-node-red-editor/87576/3 "2024-04-29T08:18:38Z")

</div>

Thanks, my editor lib in settings.js was indeed set to "ace". Setting it to "monaco" gave me the new editor.

```auto
codeEditor: {
            /** Select the text editor component used by the editor.
             * Defaults to "ace", but can be set to "ace" or "monaco"
             */
            lib: "monaco",
            options: {
                /** The follow options only apply if the editor is set to "monaco"
                 *
                 * theme - must match the file name of a theme in
                 * packages/node_modules/@node-red/editor-client/src/vendor/monaco/dist/theme
                 * e.g. "tomorrow-night", "upstream-sunburst", "github", "my-theme"
                 */
                theme: "vs",
                /** other overrides can be set e.g. fontSize, fontFamily, fontLigatures etc.
                 * for the full list, see https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.istandaloneeditorconstructionoptions.html
                 */
                //fontSize: 14,
                //fontFamily: "Cascadia Code, Fira Code, Consolas, 'Courier New', monospace",
                //fontLigatures: true,
            }

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 May 2024 08:19 UTC](https://discourse.nodered.org/t/updated-coding-window-node-red-editor/87576/4 "2024-05-13T08:19:29Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
