====== Install VCI script development environment ======
In order to create VCI script, you need to complete the steps in [[en:vci:unitypackage|Installation of VCI development environment]] and installation of following programs.
* [[https://code.visualstudio.com/|VSCode]]
* [[https://www.java.com/en/download/help/download_options.xml|Java]]
===== Download required files =====
==== VSCode ====
Download and install VSCode from [[https://code.visualstudio.com/|VSCode]].\\
VSCode is an open source text editor provided by Microsoft. ([[https://en.wikipedia.org/wiki/Visual_Studio_Code|Wikipedia]])\\
We will be using this for the creation of VCI script.
==== Java ====
Follow the instructions on [[https://www.java.com/en/download/help/download_options.xml|How do I install Java ?]] page and install Java.\\
We will need this to enable input assistance plug-in in VSCode.
===== Enabling VSCode Intellisense (input assistance) =====
==== Enabling Lua Intellisense ====
{{:vscode:emmylua.png?direct&600|}}
**Note: Just to be sure, reboot the PC after the installation of Java. **
Launch VSCode and on the left sidebar, click on the square icon (Extensions) to open EXTENSIONS window.\\
(You can also press [Ctrl]+[Shift]+[X] to open the EXTENSIONS window.)\\
On the search box, type “EmmyLua” to add the plug-in.\\
The Intellisense (input assistance) for Lua is enabled.
==== Enabling Unity Intellisense ====
Before continuing with following steps, **import the VCI into Virtual Cast and spawn it at least once. **\\
Following procedure requires the path and the file that are created during the execution of Virtual Cast.
{{vscode:luapath.png?direct&400|}}
1. Launch VSCode and open the following folder by selecting [File] > [Open Folder...].
C:/Users/__USER_NAME__/AppData/LocalLow/VirtualCast/VirtualCast
2. Open “EmbeddedScriptWorkspace” folder inside the path specified above.\\
Note: You have to replace the _USER_NAME_ with the User Name set for your computer.
{{vscode:vci_vscodeinterisensu.png?direct&400|}}
If you could see [Types.lua] and [template.lua] loaded into VSCode, the Unity Intellisense is successfully enabled.
⇒ [[en/vscode/debugger]]\\