Generate autocomplete file for Visual Studio Code.
In your Unity project, click the menu item Sinespace->Tools->Scripting->Generate autocomplete file for atom.
A window will pop up asking “Save autocomplete where?”. Navigate into the project folder for your unity project that you made note of earlier. If you are in the correct folder, you should see the folders: Assets, Library, Logs, Packages, ProjectSettings, Temp, and UserSettings.
Leave the filename as “.luacompleterc” and click Save.
Select the destination install location. Default should be fine. Click Next.
Select start menu folder. Default should be fine. Click Next.
Select additional tasks.
Make sure “Add “Open with Code” action to Windows Explorer file context menu” is checked.
Make sure “Add “Open with Code” action to Windows Explorer directory context menu” is checked.
Make sure “Register Code as an editor for supported file types” is checked.
Make sure “Add to PATH (requires shell restart)” is checked.
Click Next.
Click Install.
After installing, make sure the box is checked to Launch Code. Click Finish.
Set up VS Code.
With VS Code open, on the left side there is a button for Extensions that looks like 3 boxes, with 1 more box popping out the top right side. Click that button or press Ctrl+Shift+X
Search the extensions marketplace for “LuaCoderAssist”. It should show up below the search box with the name “liwangqian” beneath it. Click it in the list.
Click the Install button on the page for the extension.
After that is installed, click the file menu and Add Folder to Workspace. Navigate to your Unity project folder that you made note of earlier, the same place you saved the “.luacompleterc” file. Remember this and the following step, as you may need to do this again in the future should VS Code “forget” your workspace.
Link Unity and VS Code.
In Unity, click the menu item Edit->Preferences.
Navigate to the External Tools section.
In the dropdown menu for External Script Editor, select Visual Studio Code. If it is not in the list, you may need to restart Unity.
Congrats! You are now ready to script some objects in your Sinespace project.