Hints class

To use codemirror hints (aka code completion), register either a synchronous or asynchronous hints helper for a given mode (see Hints.registerHintsHelper and Hints.registerHintsHelperAsync). The second helper type returns a Future with the completion results.

In addition, you need to tie the autocomplete command to a key-binding. When creating a CodeMirror instance, pass 'extraKeys': { 'Ctrl-Space': 'autocomplete' } into the options object. Then, include the hints css in your entrypoint html file: <link href="packages/codemirror/addon/hint/show-hint.css" rel="stylesheet">.

See the CodeMirror sample for a working example of using the hints API.

Constructors

Hints()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

registerHintsHelper(String mode, HintsHelper helper) → void
registerHintsHelperAsync(String mode, HintsHelperAsync helper) → void