Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Tact Language Support for TON blockchainNew to Visual Studio Code? Get it now.
Tact Language Support for TON blockchain

Tact Language Support for TON blockchain

Kon Vik

|
5,055 installs
| (3) | Free
Tact language (for .tact file) extension to use together with Tact compiler for Visual Studio Code to develop smart contract for TON blockchain
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Tact language support for Visual Studio code

Screenshot auto compilation Tact vscode extension

Tact is the language used in TON blockchain project to create smart contracts. This extension provides:

  • Syntax highlighting
  • Error highlighting
  • Snippets
  • Additional information by hover event
  • Code completion for all variables, functions, global parameters and unique types for tact
  • Code completion for all contracts / libraries in the current file and all referenced imports
  • Formatting

Installation

To install the Tact language support extension for Visual Studio Code, follow these steps:

git clone https://github.com/tact-lang/tact-vscode
cd vscode-tact
yarn install
code .

Run the extension: Press F5 to start debugging the extension. This will open a new instance of Visual Studio Code with the Tact extension enabled.

Instructions

Code completion

Autocomplete is generally supported across for smart contracts, structs, functions, variables, inheritance. Autocomplete should happen automatically or press Ctrl+Space or Command+Space.

Screenshot autocomplete Tact vscode extension

Error highlighting

Error highlighting can be enabled or disabled using user settings. Also a default delay is implemented for all the validations compilation as Tact compilation can be slow when you have many dependencies. This part uses Tact compiler to show errors and works by save event.

"tact.enabledAsYouTypeCompilationErrorCheck": true,
"tact.validationDelay": 1500

Additional information by hover event

If hover on a variable with some Tact functions that pop up with the information about property will be shown.

Screenshot hover event Tact vscode extension

Formatting

To apply the formatting you can use the right-click context menu. Screenshot formatting Tact vscode extension

Refactor

To rename some string in the Tact code use F2, to use the code actions, open the right-click context menu and select "refactor". Screenshot refactor Tact vscode extension

Contributing / Issues / Requests

For ideas, issues, additions, modifications please raise an issue or a pull request at https://github.com/tact-lang/tact-vscode

Requested features

  • [x] Show hovers
  • [x] Formatter
  • [x] Auto compilation
  • [x] Help with function and method signatures
  • [x] Possible actions on errors or warnings
  • [ ] Linter
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft