# Just noticed a new thing when editing code in \`function\` node

**URL:** <https://discourse.nodered.org/t/just-noticed-a-new-thing-when-editing-code-in-function-node/98835>\
**Category:** General\
**Created:** [25 August 2025 23:33 UTC](https://discourse.nodered.org/t/just-noticed-a-new-thing-when-editing-code-in-function-node/98835 "2025-08-25T23:33:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Trying\_to\_learn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trying_to_learn/32/28400_2.png) [@Trying\_to\_learn](https://discourse.nodered.org/u/Trying_to_learn)\
**Post date:** [25 August 2025 23:33 UTC](https://discourse.nodered.org/t/just-noticed-a-new-thing-when-editing-code-in-function-node/98835/1 "2025-08-25T23:33:00Z")

</div>

Ok, maybe I missed it but today it caught my eye.

You have a `function` node open with a lot of code.

See below

 ![Screenshot from 2025-08-26 09-29-24](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fb233034e5557f61b87124245c559e30db148c17.png)

You start to scroll

 ![Screenshot from 2025-08-26 09-29-31](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/2/028bff206e79f97b0084facb2d84997e643c460b.png)

Notice how the first line of the block of code doesn't scroll.

Neat. 🙂

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [26 August 2025 13:51 UTC](https://discourse.nodered.org/t/just-noticed-a-new-thing-when-editing-code-in-function-node/98835/2 "2025-08-26T13:51:09Z")

</div>

This was introduced to VS Code a few releases back (quite a few actually) and so undoubtedly made is way into Monaco. It is indeed a very nice feature. The summary line is clickable as well, particularly useful for collapsing a long function.

---

<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:** [24 November 2025 13:51 UTC](https://discourse.nodered.org/t/just-noticed-a-new-thing-when-editing-code-in-function-node/98835/3 "2025-11-24T13:51:32Z")

</div>

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