# How to disable "Remembering cursor position" in function node (version 3.0)

**URL:** <https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019>\
**Category:** General\
**Tags:** function-node\
**Created:** [14 October 2022 08:44 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019 "2022-10-14T08:44:26Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahsha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sahsha/32/43845_2.png) [@sahsha](https://discourse.nodered.org/u/sahsha)\
**Post date:** [14 October 2022 08:44 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019/1 "2022-10-14T08:44:27Z")

</div>

How to disable "Remembering cursor position" in function node.

> **[Version 3.0 released](https://nodered.org/blog/2022/07/14/version-3-0-released)**
>
> Find out more on the blog

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [14 October 2022 09:06 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019/2 "2022-10-14T09:06:13Z")

</div>

Hi @sahsha - there is no option provided to disable that feature. Is it not useful for you?

As with all things, we could add an option to disable it - just depends how much demand there is to turn it off.

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [14 October 2022 09:54 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019/3 "2022-10-14T09:54:44Z")

</div>

I'd like to see a disable option also.

---

<div class="post-metadata">

**Author:** ![sahsha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sahsha/32/43845_2.png) [@sahsha](https://discourse.nodered.org/u/sahsha)\
**Post date:** [14 October 2022 10:01 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019/4 "2022-10-14T10:01:54Z")

</div>

Whenever I need to update one of my instance which is already running for months & on scrolling way down then click a position to edit, it selects the entire code up till the last known cursor position.

This feature is best if I'm working on same day. After few days I forget where I've left the cursor.

So wanted to know if disabling can be done.

---

<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:** [14 October 2022 10:47 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019/5 "2022-10-14T10:47:58Z")

</div>

> [@sahsha](#):
>
> Whenever I need to update one of my instance which is already running for months & on scrolling way down then click a position to edit, it selects the entire code up till the last known cursor position.

What code editor are you using? This is a bug with the old ACE editor.

How to tell:

- Monaco is a rich editor with tons of built in Node-RED aware snippets & many tools built-in...  
 ![chrome_nC3d2O0VMe](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/4/e4d562dec2e011e936df5ce10a163cda8cfc52af.gif)
- ACE does not!

> [@sahsha](#):
>
> This feature is best if I'm working on same day. After few days I forget where I've left the cursor.

Dont you ever refresh the browser? Cursor position is only memory based!

> [@sahsha](#):
>
> So wanted to know if disabling can be done.

You are the first and only person to ask this 🤔

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [14 October 2022 10:57 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019/6 "2022-10-14T10:57:59Z")

</div>

on my keyboard cmd- (up arrow) jumps the cursor to the top of the function.

---

<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:** [14 October 2022 11:00 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019/7 "2022-10-14T11:00:06Z")

</div>

@dceejay  
On windows/linux, `CTRL-Home` takes the cursor to the top/beginning of the editor, `CTRL-End` takes the cursor to the bottom/end of the editor

> [@sahsha](#):
>
> After few days I forget where I've left the cursor

- If you want to just start at the top

- If you want to find where you left the cursor...

Would be good to know which editor you are using (ACE or MONACO), what browser you are using, and whether these things are working for you

---

<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:** [14 October 2022 11:02 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019/8 "2022-10-14T11:02:18Z")

</div>

> [@sahsha](#):
>
> This feature is best if I'm working on same day. After few days I forget where I've left the cursor

Maybe then you'd prefer "auto forget cursor position after [xx] hours" ?

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [14 October 2022 11:28 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019/9 "2022-10-14T11:28:11Z")

</div>

I quite like the remember cursor position feature, but it's value does diminish over time so forget after 1 day would be handy.

While we are on the subject of Monaco, is it possible to curb it's overenthusiastic use of popover tooltips?  
eg here with the mouse over "set"

 ![Untitled 4](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/d/8d463f64cfa7c52941eaa63cbd8e49730bd043b2.jpeg)

---

<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:** [14 October 2022 11:55 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019/10 "2022-10-14T11:55:43Z")

</div>

> [@jbudd](#):
>
> While we are on the subject of Monaco, is it possible to curb it's overenthusiastic use of popover tooltips?

Yes, there are tons of customisations to suit everyone's needs.

The defaults I chose were with beginner in mind (who wouldn't know how to find these tips if they were disabled by default - in fact, they wouldn't even know such help exists at all).

I felt keeping it as close to how VSCode is (out of the box) made more sense than dumbing down/up choices made by microsoft. This (I hope) makes users aware of what it _can_ do, then they can tailor it to their preference - but at least they would know such things exist.

I only go into this detail as this is the 2nd time someone has asked for "less"

Essentially, the tweaking is (currently) done by modifying your settings.js file.

Try this...

```auto
        codeEditor: {
            lib: "monaco", //can be "monaco" or "ace"
            options: {
                // /* 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-dark",
                minimap: {
                    enabled: true,
                    maxColumn: 40,
                    scale: 1,
                    showSlider : "mouseover",
                    renderCharacters: true
                },
                fontSize: 14,
                fontLigatures: true,
                fontFamily: "Cascadia Code, Fira Code, Consolas, 'Courier New', monospace",
                fontWeight: "300",
                colorDecorators: true,
                showFoldingControls: 'always',
                "bracketPairColorization.enabled": true,
                hover:{ 
                    delay: 1000,
                    sticky: false,
                    enabled: true
                }
            }
        }

```

☝ that goes inside `editorTheme { ... }`

More options here: [https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IStandaloneEditorConstructionOptions.html](https://microsoft.github.io/monaco-editor/api/interfaces/monaco.editor.IStandaloneEditorConstructionOptions.html)  
Playground for trying stuff out here: [Monaco Editor](https://microsoft.github.io/monaco-editor/playground.html#extending-language-services-configure-javascript-defaults)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [14 October 2022 13:29 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019/11 "2022-10-14T13:29:24Z")

</div>

> [@jbudd](#):
>
> is it possible to curb it's overenthusiastic use of popover tooltips?

Given how often we're hearing this feedback, I do think providing some options in the editor (without resorting to editing the settings file) are needed.

As I've said elsewhere, I do find the auto-suggest can be overwhelming and overly aggressive. I think we can tune it to be less in your face, whilst not diminishing the help it can provide. Even just a short delay before it pops up would mean it doesn't keep shouting at you whilst you type.

---

<div class="post-metadata">

**Author:** ![sahsha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sahsha/32/43845_2.png) [@sahsha](https://discourse.nodered.org/u/sahsha)\
**Post date:** [15 October 2022 05:32 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019/12 "2022-10-15T05:32:54Z")

</div>

> [@Steve-Mcl](#):
>
> `lib: "monaco", //can be "monaco" or "ace"`

@knolleary I changed setting from "ace" to "monaco", seems to suit my requirement.

---

<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:** [14 December 2022 05:33 UTC](https://discourse.nodered.org/t/how-to-disable-remembering-cursor-position-in-function-node-version-3-0/69019/13 "2022-12-14T05:33:22Z")

</div>

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