# Triggering Build and Hot reload on Editor

**URL:** <https://forum.defold.com/t/triggering-build-and-hot-reload-on-editor/45616>\
**Category:** Feature requests (USE GITHUB)\
**Created:** [March 7, 2019, 9:35am UTC](https://forum.defold.com/t/triggering-build-and-hot-reload-on-editor/45616 "2019-03-07T09:35:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![selimanac](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/selimanac/32/6397_2.png) [@selimanac](https://forum.defold.com/u/selimanac)\
**Post date:** [March 7, 2019, 9:35am UTC](https://forum.defold.com/t/triggering-build-and-hot-reload-on-editor/45616/1 "2019-03-07T09:35:46Z")

</div>

It would be nice to have a way for triggering [Build and Hot reloading](https://forum.defold.com/t/triggering-hot-reloading-externally/3200) on Editor(not with bob). Then we can use it for 3th party IDEs

---

<div class="post-metadata">

**Author:** ![piXelicidio](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pixelicidio/32/26074_2.png) [@piXelicidio](https://forum.defold.com/u/piXelicidio)\
**Post date:** [July 20, 2020, 2:46pm UTC](https://forum.defold.com/t/triggering-build-and-hot-reload-on-editor/45616/2 "2020-07-20T14:46:46Z")

</div>

Meanwhile I’m sending keystrokes to the Editor on Windows from Atom using this [Autohotkey](https://www.autohotkey.com/) script:

```
#IfWinActive ahk_exe atom.exe
^+b::
SetTitleMatchMode, 2
WinActivate, Defold Editor
Send, ^b
return

#IfWinActive ahk_exe atom.exe
^+r::
SetTitleMatchMode, 2
WinActivate, Defold Editor
Send, ^r
return

```

Ctrl+Shift+B : Sends a Ctrl+B (Build) to Defold Editor.  
Ctrl+Shift+R : Sends a Ctrl+R (Hot reload) to Defold Editor.

Maybe helpful for someone.  
Change ‘atom.exe’ for other editors, like ‘code.exe’ for Visual Studio Code.

---

<div class="post-metadata">

**Author:** ![gianmichele](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/gianmichele/32/24028_2.png) [@gianmichele](https://forum.defold.com/u/gianmichele)\
**Post date:** [July 20, 2020, 3:33pm UTC](https://forum.defold.com/t/triggering-build-and-hot-reload-on-editor/45616/3 "2020-07-20T15:33:28Z")

</div>

Sooo cool. Need to find something similar for mac 🙂

---

<div class="post-metadata">

**Author:** ![selimanac](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/selimanac/32/6397_2.png) [@selimanac](https://forum.defold.com/u/selimanac)\
**Post date:** [August 19, 2024, 12:03pm UTC](https://forum.defold.com/t/triggering-build-and-hot-reload-on-editor/45616/4 "2024-08-19T12:03:41Z")

</div>

Please vote: [Configurable port for Editor HTTP API · Issue #8737 · defold/defold · GitHub](https://github.com/defold/defold/issues/8737)

I’m using this method for buid and hot reload:

> [@On\_reloaded lifecycle hook in editor?](https://forum.defold.com/t/on-reloaded-lifecycle-hook-in-editor/75667/2):
>
> I’ve come up with a workaround for this that suits my workflow. It’s specific to Mac OS X at the moment, but thought I’d share in this forum in case others are interested. Background: The editor runs a HTTP server that can be hooked into to trigger a hot reload of the running game from an external command. We can use this to trigger a hot reload of our game anytime, like when we update an image or other asset externally. The editor port is random everytime though, so we need a script to dynami…
