# Restore scroll & caret position in Ace editor

**URL:** https://discourse.nodered.org/t/restore-scroll-caret-position-in-ace-editor/31307
**Category:** Core Development
**Created:** [8 August 2020 09:19 UTC](https://discourse.nodered.org/t/restore-scroll-caret-position-in-ace-editor/31307 "2020-08-08T09:19:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![alexk111](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/alexk111/32/16891_2.png) [@alexk111](https://discourse.nodered.org/u/alexk111)
#### Post date: [8 August 2020 09:19 UTC](https://discourse.nodered.org/t/restore-scroll-caret-position-in-ace-editor/31307/1 "2020-08-08T09:19:12Z")

</div>

Currently when editing / testing some part of a multi-line html/js code in template and function nodes, you have to always scroll back and seek the last changed line on each edit-save-test-edit iteration. Having the scroll/caret position restored would help to stay focused on the development rather than memorizing the last edited line.

---

<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: [9 August 2020 16:09 UTC](https://discourse.nodered.org/t/restore-scroll-caret-position-in-ace-editor/31307/2 "2020-08-09T16:09:39Z")

</div>

I'll admit that, for more complex code, I copy the code into a temporary file in VScode.

Sadly the ACE editor (the component itself, not a comment on NR's use of it) is starting to look rather dated now.

---

<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: [8 October 2020 16:09 UTC](https://discourse.nodered.org/t/restore-scroll-caret-position-in-ace-editor/31307/3 "2020-10-08T16:09:41Z")

</div>

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