Adding an IDE to the desktop editor
You will need an IDE to write your own scripts for Meta Horizon Worlds. By default, the desktop editor uses
Visual Studio Code, but if you want to use a different editor, you can configure it to use another IDE instead.
To configure the desktop editor, you need to make sure that you use version 4.7.4 of TypeScript. While you can use other versions of TypeScript, you may encounter issues when you use them with Meta Horizon Worlds APIs. If you don’t have TypeScript installed yet or you’re uncertain what version you’ve got, see
Managing Typescript.
Whichever IDE you choose to use, you will need to configure the desktop editor to use it. Steps to do so can be found below:
Using VS Code with the desktop editor
This section shows you how to set up Visual Studio Code (VS Code) for editing TypeScript scripts with the desktop editor.
Configure the desktop editor to use VS Code
If it’s not already installed on your computer, install the latest version of VS Code from the
VS Code website.
Ensure that you have version 4.7.4 of TypeScript installed. For more information on doing this, see
Managing Typescript.
Note the file path to where VS Code is installed on your computer. You’ll need this in the following steps.
Open the Meta Horizon Worlds desktop editor and then open the Scripts panel.
Click the gear-shaped icon to open Settings.
Next to External Editor, click Select.
Paste the file path from Step 3 into the File name field and then click Open. You can also navigate to the EXE file for your IDE and then click Open.
Click Apply to set VS Code as the external editor.
Using another third-party IDE with the desktop editor
These section shows you how to set up the desktop editor to use an IDE other than VS Code as the default IDE.
Ensure that you have version 4.7.4 of TypeScript installed. For more information on doing this, see
Managing Typescript.
If it’s not already installed on your computer, install the latest version of your third-party IDE.
Note the file path to where the EXE file for your IDE is installed on your computer. You’ll need this in the following steps.
Open the Meta Horizon Worlds desktop editor and then open the Scripts panel.
Click the gear-shaped icon to open Settings.
Next to External Editor, click Select.
Paste the file path from Step 3 into the File name field and then click Open. You can also navigate to the EXE file for your IDE and then click Open.
Click Apply to set VS Code as the external editor.