-
Notifications
You must be signed in to change notification settings - Fork 351
Autocompletion
Nako Sung edited this page Nov 29, 2015
·
5 revisions
Autocompletion support is a huge time-saver of dev. Due to nature of being dynamic-typed language, most of javascript editor doesn't provide full level of support like as C++ has in Visual Studio.
However, Visual Studio Code provides auto completion for Javascript, only when typing information are given. So Unreal.js has built-in feature which generates typing information of All UnrealEngine entities which are accessible. You can regenerate typings by calling Context.WriteDTS(path)
.
Once you have got typings, the only thing to have auto completion is adding a line to top of your JS code.
/// <reference path="typings/ue.d.ts">/>
By the way, current version of Visual Studio Code seems to suffer from large *.d.ts. To reduce size of typings, you may disable help text generation.