Deluge Language Support for VS Code
Comprehensive language support for Zoho Deluge with 150+ built-in functions, IntelliSense, and snippets.

📚 Full Documentation | 🐛 Report Issues | 💡 Request Features
Features
Syntax Highlighting
- Full syntax highlighting for Deluge scripts that works with any VS Code theme
- Support for
.ds and .deluge file extensions
- Keyword recognition (if, else, for, each, etc.)
- Built-in function highlighting (info, alert, isNull, etc.)
- Operator highlighting
- Comment support
- String and number literal highlighting
IntelliSense & Auto-completion
- Smart code completion for built-in Deluge functions
- Parameter hints and function signatures
- Keyword suggestions
Code Snippets
- Quick snippets for common Deluge patterns
- Type
if, foreach, try, list, map, and more to insert code templates
- Zoho-specific snippets for CRM operations
Hover Documentation
- Hover over any built-in function to see documentation
- Function signatures, descriptions, and examples
- Inline help without leaving your editor
Document Outline
- View all functions and variables in the Outline panel
- Quick navigation to any symbol in your file
- Breadcrumb navigation at the top of the editor
- Format entire document or selected text
- Automatic indentation and bracket alignment
- Consistent code style across your project
- Format on save (configurable in VS Code settings)
Supported File Extensions
About Deluge
Deluge (Data Enriched Language for the Universal Grid Environment) is Zoho's scripting language used across multiple Zoho applications for automation and custom logic.
Installation
Install directly from the VS Code Marketplace:
- Open VS Code
- Go to Extensions (Cmd+Shift+X / Ctrl+Shift+X)
- Search for "Deluge"
- Click Install
Or install via command line:
code --install-extension BagaduceDigital.deluge-lang
Usage
Using Snippets
Start typing any of these prefixes and press Tab:
Control Flow: if, ifelse, foreach, try
Data Structures: list, map
Functions: function
Zoho CRM: zcrm, zcrmcreate, zcrmupdate, zcrmget, zcrmsearch, zcrmdelete, zcrmfull, zcrmupdfull
Zoho Creator: zcreate, zupdate
Zoho Books: zbookscreate, zbooksupdate
Zoho Desk: zdeskcreate, zdeskupdate
Zoho Mail: zmailget
Zoho Recruit: zrecruitadd
Zoho Cliq: zcliq
Zoho WorkDrive: zworkdrive
HTTP & Utilities: invokeget, invokepost, sendmail, sha256, base64enc
Date/Time: addday, todate, today
JSON & Files: jsonlist, filecontent
And many more with tab-stop navigation and dropdown choices!
IntelliSense
Simply start typing a function name and IntelliSense will suggest completions with documentation.
Hover Documentation
Hover your mouse over any built-in function like info, isNull, List, etc. to see documentation and examples.
Document Outline
Open the Outline panel (View → Outline) to see all functions and variables in your file. Click any symbol to jump to it.
- Format Document: Right-click → "Format Document" or
Shift+Alt+F
- Format Selection: Select code → Right-click → "Format Selection"
- Format on Save: Add to settings.json:
"[deluge]": { "editor.formatOnSave": true }
Supported Functions
This extension provides IntelliSense and documentation for 160+ built-in Deluge functions across all Zoho applications:
Core Functions
Collections: List, Map, Collection, add, remove, get, put, size, count, clear, containsKey, keys, values
Strings: length, substring, indexOf, contains, startsWith, endsWith, replace, replaceAll, toLowerCase, toUpperCase, trim, split, equalsIgnoreCase, matches
Numbers: floor, ceil, round, abs, sqrt, pow
Type Conversion: toString, toList, toNumber, toDecimal
Null Checking: isNull, isEmpty, ifNull
Logging: info, alert
Zoho Application Functions
Zoho CRM: createRecord, updateRecord, getRecords, getRecordById, searchRecords, deleteRecord
Zoho Creator: createRecord, updateRecord
Zoho Books: createRecord, updateRecord, getRecords
Zoho Desk: create, update, getRecordById, searchRecords
Zoho Mail: getMessage, moveToFolder, getFolders, createFolder
Zoho People: getRecords
Zoho Recruit: getRecords, searchRecords, getRecordById, addRecord
Zoho Projects: getPortals, getProjectDetails
Zoho Cliq: postToUser, postToChannel
Zoho WorkDrive: uploadFile, createFolder
Zoho Inventory: getRecords, createRecord
Zoho Reports (Analytics): createRow, deleteRow, updateData
Zoho Invoice: create, getRecords, getRecordById, update
Zoho Billing (Subscriptions): create, getList, retrieve, update, getOrganizations
Zoho Sheet: getSheets, createRecords, getRecords, updateRecords, find, replace, insertCSV
Zoho Writer: getDocuments, uploadDocument, shareDocument, getMergeFields, getAllFields, mergeAndSend, mergeAndStore, mergeAndInvoke, mergeAndSign, signDocument, getMergeTemplates, getSignTemplates, getFillableTemplates, generateFillableLink
Zoho Sign: createDocument, getDocumentById, updateDocument, getFieldIds, downloadDocument, submitRequest, getTemplates, getTemplateById, createUsingTemplate
Zoho Bookings: getWorkspaces, getRecordById, getRelatedRecords, getAvailableSlots, createAppointment, updateRecord
Zoho Connect: myNetworks, myGroups, getPost, addPost, updatePost
Zoho Calendar: createEvent
Zoho SalesIQ: visitorsession.set, visitorsession.get
Zoho Notebook: createNotecard
Zoho Map: geoCode, distanceBetween
Utility Functions
HTTP: invokeUrl (GET, POST, PUT, DELETE, PATCH)
Encryption: MD5, SHA256, SHA512, base64Encode, base64Decode
Date/Time: addDay, addMonth, addYear, addHour, addMinutes, toDate, weekday
JSON/Data: toJSONList, getJSON
File: getFileContent, toFile
I/O: sendmail, openUrl, input
For a complete function reference with examples, see the Full Documentation.
Documentation & Support
Contributing
We welcome contributions! Please see our Contributing Guide for details.
License
MIT License