Skip to content

Snippets

Jens Fischer edited this page Apr 20, 2019 · 3 revisions

Note: the features on this page all require Haxe 4.0.0-preview.4 or newer.

The Haxe extension includes a number of context-sensitive snippets in completion.

package

The package statement can be auto-generated with a snippet:

Types

When requesting completion at type level at a module, snippets for each kind of type (class, interface, abstract, enum, typedef...) are offered:

Fields

When requesting completion at field level, a number of handy snippets for generating fields is offered. This ranges from a simple var or function declaration to a (get, set) property complete with its accessor functions: