Skip to content

Completion

Completion in crc works in every language, with or without a language server, and says why it offers what it offers.

  • The best guess appears as ghost text at the caret.
  • The alternatives sit in a single row of chips under the line.
  • One line of explanation says why the picked one is offered: where it is defined, how often it is used, and how often you picked it after the same receiver.
Ask for completion⌃Space
Take the suggestionTab
Pick another↑ ↓, then ↩
Take one directly⌥1…9
CloseEsc
Source What it knows
The language server Types, members and imports, where a server is installed.
The project index What the whole project defines and uses, kept in SQLite in ~/Library/Caches/crc/index/.
Nearby words Words close to the caret in the same file.
Paths Files in the project, respecting any .gitignore, for ./ imports and quoted paths.
Your history What you picked before, and after which receiver.

What you pick is recorded in ~/Library/Application Support/crc/completion.db, on your Mac only. Go › Forget Completion History clears it.

Typing a line in a .gitignore shows in the Explorer what it would ignore, before you save.