wiki.sine.space | sinespace

Difference between revisions of "Auto Complete Setup (Scripting)"

From wiki.sine.space
Jump to: navigation, search
Line 14: Line 14:
 
== Microsoft VS Code Setup==
 
== Microsoft VS Code Setup==
 
You can obtain Microsoft VS Code from here : https://code.visualstudio.com/
 
You can obtain Microsoft VS Code from here : https://code.visualstudio.com/
 +
 
After install we need to point VS Code at our Unity project folder, select the file drop down menu and select add folder to workspace.  
 
After install we need to point VS Code at our Unity project folder, select the file drop down menu and select add folder to workspace.  
 
Locate  your Unity project folder in my example documents/2017. On completion a new panel will be added to the left hand side containing our unity project.
 
Locate  your Unity project folder in my example documents/2017. On completion a new panel will be added to the left hand side containing our unity project.

Revision as of 17:43, 14 April 2019

The Sinespace Editor pack includes the tools required to create a scripting auto complete file for use with editors such as Microsoft VS Code & Atom. Below is a demonstration of how to set up with VS Code.

File export

From inside your Unity project select the Sinespace drop down menu and select tools/scripting/generate auto complete file for Atom.

Autocomplete1.jpeg

Locate the root folder for your Unity project in my example documents/2017 then click save (you do not need to enter a file name here)

Autocomplete2.jpeg

A new file will be added to your project folder called .luaautocompleterc, This file contains the Sinespace Scripting API information. We are now ready to setup our editor of choice.

Microsoft VS Code Setup

You can obtain Microsoft VS Code from here : https://code.visualstudio.com/

After install we need to point VS Code at our Unity project folder, select the file drop down menu and select add folder to workspace. Locate your Unity project folder in my example documents/2017. On completion a new panel will be added to the left hand side containing our unity project.