CoffeeQL for VS Code
Syntax highlighting, snippets, and hover documentation for CoffeeQL.
Features
Syntax Highlighting
Full highlighting for .cql files including:
- Chain operations (
.where, .give, .sort, .cup, .blend, .mix, .pour, .refill, .spill, .stream)
- Collection types —
users[] (relational), products{} (document), session:key{} (key-value)
- Aggregates (
COUNT, SUM, AVG, MAX, MIN)
- Special methods (
.near, .like, .has, .last)
- Data types, constraints, keywords, strings, numbers, booleans
- Comments (
//)
Snippets
Type a prefix and press Tab to expand:
| Prefix |
Expands to |
query |
Basic query with .where and .cup |
queryg |
Query with .give |
querys |
Query with .sort |
pour |
Insert a record |
refill |
Update records |
spill |
Delete records |
mix |
Join two collections |
blend |
Group by with aggregate |
stream |
Streaming query (v0.5.0) |
grind |
Define a schema |
shot |
Batch multiple queries |
near |
Geolocation proximity query |
like |
Vector similarity search |
last |
Time-based filter |
Hover Documentation
Hover over any CoffeeQL keyword to see documentation and examples.
File Association
CoffeeQL syntax highlighting applies automatically to .cql files.
To use CoffeeQL highlighting in other file types, add this to your VS Code settings:
"files.associations": {
"*.coffeeql": "coffeeql"
}
Links
| |