# Programatically load typescript/blocks code into editor

**URL:** <https://forum.makecode.com/t/programatically-load-typescript-blocks-code-into-editor/20511>\
**Category:** micro:bit extensions\
**Tags:** extension\
**Created:** [June 9, 2023, 5:38pm UTC](https://forum.makecode.com/t/programatically-load-typescript-blocks-code-into-editor/20511 "2023-06-09T17:38:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tcberner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tcberner/32/9103_2.png) [@tcberner](https://forum.makecode.com/u/tcberner)\
**Post date:** [June 9, 2023, 5:38pm UTC](https://forum.makecode.com/t/programatically-load-typescript-blocks-code-into-editor/20511/1 "2023-06-09T17:38:11Z")

</div>

Hi there

I’m trying to programmatically replace the code in the current editor view with a pre-defined snippet for a tutorial-extension, depending on user actions (think: “give me a small hint”, “give me a big hint”, “solve it for me please”).

What is the intended way to go about this issue?

mfg Tobias

---

<div class="post-metadata">

**Author:** ![KIKIvsIT](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/kikivsit/32/10492_2.png) [@KIKIvsIT](https://forum.makecode.com/u/KIKIvsIT)\
**Post date:** [June 9, 2023, 5:39pm UTC](https://forum.makecode.com/t/programatically-load-typescript-blocks-code-into-editor/20511/2 "2023-06-09T17:39:44Z")

</div>

Are you using the MakeCode tutorial tool for this? If so, we’re bringing the Arcade tutorial clues to micro:bit in a few weeks. You can access them in beta now.
