# DAML Studio: code is not recognized as an internal or external command

**URL:** <https://forum.canton.network/t/daml-studio-code-is-not-recognized-as-an-internal-or-external-command/2614>\
**Category:** App Development\
**Tags:** daml\
**Created:** [May 20, 2021, 1:00pm UTC](https://forum.canton.network/t/daml-studio-code-is-not-recognized-as-an-internal-or-external-command/2614 "2021-05-20T13:00:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arunlal\_SJ](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/arunlal_sj/32/1944_2.png) [@Arunlal\_SJ](https://forum.canton.network/u/Arunlal_SJ)\
**Post date:** [May 20, 2021, 1:00pm UTC](https://forum.canton.network/t/daml-studio-code-is-not-recognized-as-an-internal-or-external-command/2614/1 "2021-05-20T13:00:35Z")

</div>

Team,

am new to DAML and am unable to launch daml Studio through command prompt, i have already installed visual studio code and SDK… i got the below error message. kindly help…

‘code’ is not recognized as an internal or external command,  
operable program or batch file.

Failed to install DAML Studio extension from marketplace.  
Installing bundled DAML Studio extension instead.  
‘code’ is not recognized as an internal or external command,  
operable program or batch file.

Failed to install DAML Studio extension from current SDK.  
Please open an issue on GitHub with the above message.

> **[Build software better, together](https://github.com/digital-asset/daml/issues/new?template=bug_report.md)**
>
> al-asset/daml/issues/new

‘code’ is not recognized as an internal or external command,  
operable program or batch file.

Failed to launch DAML studio. Make sure Visual Studio Code is installed.  
See [Download Visual Studio Code - Mac, Linux, Windows](https://code.visualstudio.com/Download) for installation instructions.

Best Regards,  
Arunlal

---

<div class="post-metadata">

**Author:** ![Zsolt\_Holman](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/zsolt_holman/32/2075_2.png) [@Zsolt\_Holman](https://forum.canton.network/u/Zsolt_Holman)\
**Post date:** [May 20, 2021, 2:06pm UTC](https://forum.canton.network/t/daml-studio-code-is-not-recognized-as-an-internal-or-external-command/2614/2 "2021-05-20T14:06:05Z")

</div>

Hi Arunlal,

Have you set the environment variable properly?  
This [article](https://stackoverflow.com/questions/46638944/code-is-not-recognized-as-an-internal-or-external-command) or the official [documentation](https://code.visualstudio.com/docs/setup/windows) might help.

Best regards,  
Zsolt

---

<div class="post-metadata">

**Author:** ![Gary\_Verhaegen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gary_verhaegen/32/81_2.png) [@Gary\_Verhaegen](https://forum.canton.network/u/Gary_Verhaegen)\
**Post date:** [May 20, 2021, 3:39pm UTC](https://forum.canton.network/t/daml-studio-code-is-not-recognized-as-an-internal-or-external-command/2614/3 "2021-05-20T15:39:56Z")

</div>

Would you mind sharing the exact command you ran to generate those error messages? AFAIK you should not need the `code` CLI command to work in order to use `daml studio`; having VSCode installed should be enough.

---

<div class="post-metadata">

**Author:** ![cocreature](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/cocreature/32/36_2.png) [@cocreature](https://forum.canton.network/u/cocreature)\
**Post date:** [May 20, 2021, 3:47pm UTC](https://forum.canton.network/t/daml-studio-code-is-not-recognized-as-an-internal-or-external-command/2614/4 "2021-05-20T15:47:10Z")

</div>

On Linux and Windows you need to have `code` in PATH. On MacOS it should work without that.

Which operating system are you running on?

---

<div class="post-metadata">

**Author:** ![Arunlal\_SJ](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/arunlal_sj/32/1944_2.png) [@Arunlal\_SJ](https://forum.canton.network/u/Arunlal_SJ)\
**Post date:** [May 21, 2021, 7:54am UTC](https://forum.canton.network/t/daml-studio-code-is-not-recognized-as-an-internal-or-external-command/2614/5 "2021-05-21T07:54:11Z")

</div>

Hi Zsolt,

I have added the Path and logged out and logged in again, but still am facing the same issue and the studio is not opening. Attached the screenshot for reference.

 ![cmdprompt](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/b/bb7ca722d771468e890948460173f249d3e73df8.png)  
 ![Environmentvariable](https://canada1.discourse-cdn.com/flex028/uploads/daml/original/2X/6/6edc5d288746b9d154437794ef3d740ffed6c473.png)

---

<div class="post-metadata">

**Author:** ![Gary\_Verhaegen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gary_verhaegen/32/81_2.png) [@Gary\_Verhaegen](https://forum.canton.network/u/Gary_Verhaegen)\
**Post date:** [May 21, 2021, 8:04am UTC](https://forum.canton.network/t/daml-studio-code-is-not-recognized-as-an-internal-or-external-command/2614/6 "2021-05-21T08:04:02Z")

</div>

Eliminating Daml from the equation for a moment, can you confirm whether if you open up a new terminal and type just “code” that works?

---

<div class="post-metadata">

**Author:** ![quidagis](https://avatars.discourse-cdn.com/v4/letter/q/dbc845/32.png) [@quidagis](https://forum.canton.network/u/quidagis)\
**Post date:** [May 24, 2021, 3:02am UTC](https://forum.canton.network/t/daml-studio-code-is-not-recognized-as-an-internal-or-external-command/2614/7 "2021-05-24T03:02:01Z")

</div>

I am assuming that @Arunlal_SJ was able to get this remediated?

---

<div class="post-metadata">

**Author:** ![Zsolt\_Holman](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/zsolt_holman/32/2075_2.png) [@Zsolt\_Holman](https://forum.canton.network/u/Zsolt_Holman)\
**Post date:** [May 24, 2021, 10:31pm UTC](https://forum.canton.network/t/daml-studio-code-is-not-recognized-as-an-internal-or-external-command/2614/8 "2021-05-24T22:31:26Z")

</div>

Arunlal,

The error message “Not in project” comes if daml assistant is invoked from outside of a project directory.

I recommend the following steps to be taken for the very first time:

[Daml Getting Started](https://docs.daml.com/getting-started/index.html)  
First off, open a terminal, change to a folder in which to create your first application, and instantiate the template project.

- daml new create-daml-app --template create-daml-app
- cd create-daml-app

Once the project created, VSC can be launched from the project folder:

- daml studio
