Skip to main content

Overview

A table field with a number key, like [1], is hard to read at the call site. index_alias gives it a name. Completion lists the field under that name, and an inlay hint shows the name next to t[1]. The field keeps its number key. The name is only shown in the editor.

Syntax

Put it above the numbered field, or after it on the same line.

Example

It also works on numbered @field lines: