====== 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]]
===== 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.
===== Enabling VSCode Intellisense (input assistance) =====
==== Enabling Lua Intellisense ====
{{:vscode:visual-studio-marketplace.png?direct&600|}}
Open [[https://marketplace.visualstudio.com/items?itemName=sumneko.lua|Visual Studio Marketplace]] and select Install.\\
If a dialog appears asking for permission to open in VSCode, select Open.
{{:vscode:lua-vscode.png?direct&600|}}
When VSCode opens, select Install.\\
This will enable Lua Intellisense.
==== Enabling VCI 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 VCI Intellisense is successfully enabled.
⇒ [[en/vscode/debugger]]\\