Extension for VSCode and VSCode-based editors with comprehensive support for TON Blockchain languages and technologies including Tolk, FunC, Fift assembly, TL-B, BoC, and Acton.
Features • Installation • Troubleshooting
Tolk support includes:
- Semantic syntax highlighting
- Code completion with auto import, postfix completion, snippets, imports completion
- Go to definition, type definition
- Find all references, workspace symbol search, symbol renaming
- Automatic import updates when renaming and moving files
- Types and documentation on hover
- Inlay hints for types, parameter names, and more
- On-the-fly inspections with quick fixes
- Signature help inside calls
- Build, test, format, lint, and debug projects based on Acton
- Flexible toolchain management
FunC support includes:
- Semantic syntax highlighting
- Code completion, imports completion
- Go to definition
- Find all references, workspace symbol search, symbol renaming
- Automatic import updates when renaming and moving files
- Types and documentation on hover
- Inlay hints for method id
- On-the-fly inspections
- Legacy FunC language support for existing contracts
Fift assembly support includes:
- Basic and semantic syntax highlighting
- Go-to definition
- Inlay hints with instruction gas consumption
- Hover documentation for instructions
TL-B support includes:
- Basic and semantic syntax highlighting
- Go-to definition
- Completion for fields, parameters, and types
- Go-to references for types
- Hover documentation for declarations
BoC support includes:
- Automatic BoC disassembly with syntax highlighting
- Automatic updates on BoC changes
The easiest way to get started with TON development is to use VS Code or editors based on it:
- Install the TON extension in VS Code or in VS Code-based editors
- Open an Acton project with an
Acton.tomlfile, or create one with the Acton CLI - That's it!
The extension automatically detects your Acton and Tolk toolchain installation. See the Acton integration guide for the project workflow. If you need to work with custom Tolk compiler builds, check out the toolchain management guide.
- Get the latest
.vsixfile from releases, from VS Code marketplace, or from Open VSX Registry - In VS Code:
- Open the Command Palette (
Ctrl+Shift+PorCmd+Shift+P) - Type "Install from VSIX"
- Select the downloaded
.vsixfile - Reload VS Code
- Open the Command Palette (
See TROUBLESHOOTING.md.
MIT