# How can you build and run from VSCode?

**URL:** <https://forum.defold.com/t/how-can-you-build-and-run-from-vscode/45963>\
**Category:** Questions\
**Created:** [March 10, 2019, 10:33pm UTC](https://forum.defold.com/t/how-can-you-build-and-run-from-vscode/45963 "2019-03-10T22:33:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zarrix](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/zarrix/32/13134_2.png) [@zarrix](https://forum.defold.com/u/zarrix)\
**Post date:** [March 10, 2019, 10:33pm UTC](https://forum.defold.com/t/how-can-you-build-and-run-from-vscode/45963/1 "2019-03-10T22:33:54Z")

</div>

A while back I saw a video where a guy was using vscode to do the programming of a defold project and he had created a task to perform the build and run of the game. I can’t remember what command was called to perform the build/run and I can’t find the video.

Does anyone have any idea how to do this?

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [March 11, 2019, 4:43am UTC](https://forum.defold.com/t/how-can-you-build-and-run-from-vscode/45963/2 "2019-03-11T04:43:34Z")

</div>

We provide a command-line tool for building and bundling: [Defold project builder manual](https://www.defold.com/manuals/bob/)

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [March 11, 2019, 4:55am UTC](https://forum.defold.com/t/how-can-you-build-and-run-from-vscode/45963/3 "2019-03-11T04:55:39Z")

</div>

Here is a bob build script I’m currently using in production

> [@Build and bundle for multiple platforms from the command line](https://forum.defold.com/t/build-and-bundle-for-multiple-platforms-from-the-command-line/2577/20):
>
> Here is current version I’ve used multiple times to upload release builds multiple times to live users now #!/bin/bash title=$(less game.project | grep "^title = " | cut -d "=" -f2 | sed -e 's/^[[:space:]]\*//') title\_no\_space=$(echo -e "${title}" | tr -d '[[:space:]]') echo "Project: ${title}" if [! -f bob.jar] then echo "Unable to find bob.jar. Download it from d.defold.com." exit 1 fi bob() { java -jar bob.jar $@ } build() { platform=$1 shift 1 rm -rf build bob --archive clean…

---

<div class="post-metadata">

**Author:** ![zarrix](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/zarrix/32/13134_2.png) [@zarrix](https://forum.defold.com/u/zarrix)\
**Post date:** [March 12, 2019, 12:11pm UTC](https://forum.defold.com/t/how-can-you-build-and-run-from-vscode/45963/4 "2019-03-12T12:11:30Z")

</div>

Thanks for the help 🙂

---

<div class="post-metadata">

**Author:** ![zarrix](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/zarrix/32/13134_2.png) [@zarrix](https://forum.defold.com/u/zarrix)\
**Post date:** [March 24, 2019, 6:30am UTC](https://forum.defold.com/t/how-can-you-build-and-run-from-vscode/45963/5 "2019-03-24T06:30:25Z")

</div>

The script that is posted here allows you to create a build for various platforms (is this not included in the editor initiated builds?), but is there anyway to run (test) your program from outside the defold editor?

---

<div class="post-metadata">

**Author:** ![dasannikov](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/dasannikov/32/8288_2.png) [@dasannikov](https://forum.defold.com/u/dasannikov)\
**Post date:** [March 24, 2019, 7:13am UTC](https://forum.defold.com/t/how-can-you-build-and-run-from-vscode/45963/6 "2019-03-24T07:13:21Z")

</div>

Some global Hotkeys to build and run from editor maybe? or some service to send commands to editor?

---

<div class="post-metadata">

**Author:** ![Pkeod](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/pkeod/32/606_2.png) [@Pkeod](https://forum.defold.com/u/Pkeod)\
**Post date:** [March 24, 2019, 8:25am UTC](https://forum.defold.com/t/how-can-you-build-and-run-from-vscode/45963/7 "2019-03-24T08:25:31Z")

</div>

I think this is possible but I’ve never tried it. Maybe build with compression off, copy dmengine.exe or whatever into place and then run it with command line options?

---

<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 24, 2019, 8:49am UTC](https://forum.defold.com/t/how-can-you-build-and-run-from-vscode/45963/8 "2019-03-24T08:49:08Z")

</div>

+1

> [@Triggering Build and Hot reload on Editor](https://forum.defold.com/t/triggering-build-and-hot-reload-on-editor/45616):
>
> 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
