# VS Code path has changed

**URL:** <https://forum.defold.com/t/vs-code-path-has-changed/83366>\
**Category:** The Defoldmine\
**Created:** [October 19, 2026, 4:12pm UTC](https://forum.defold.com/t/vs-code-path-has-changed/83366 "2026-10-19T16:12:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robotiger77](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/robotiger77/32/41314_2.png) [@robotiger77](https://forum.defold.com/u/robotiger77)\
**Post date:** [October 19, 2026, 4:12pm UTC](https://forum.defold.com/t/vs-code-path-has-changed/83366/1 "2026-10-19T16:12:12Z")

</div>

I’m on Mac and recently updated VS Code which came to me in the shape of error when trying to open scripts from Defold (in Code). The error said:

```lua
Could not run external editor "/Applications/Visual Studio Code.app/Contents/MacOS/Electron"

Underlying error from the OS:
Cannot run program "/Applications/Visual Studio Code.app/Contents/MacOS/Electron (in directory ...): Exec failed, error 2 (No such file or directory)

```

The thing is the path of VS Code executable has changed to: “/Applications/Visual Studio Code.app/Contents/MacOS/Code” so you need to update the editor path in Defold settings.

I hope this will spare some of you a hassle. Also it would be worth noting in Defold documentation.
