Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Blockchain Truffle Suite HelperNew to Visual Studio Code? Get it now.
Blockchain Truffle Suite Helper

Blockchain Truffle Suite Helper

oliveoverflow

|
3,614 installs
| (0) | Free
add suggestions to truffle suite javascript testing files by reading solidity contracts
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Blockchain Helper

** Introduction

This extensions providers autocomple in truffle suite javascript test files. It reads solidity contracts, and uses them to provide autocomplete instances.

** Features

The following features are provided:

  • autocomplete contract functions
  • autocomplete contract variables
  • provide description of function signature as the user types arguments

** How to use

  1. Abide by truffle suite folder structure.

    • ensure that all solidity contracts are under ./contracts/ folder
    • ensure that tests are under ./test/ folder
  2. Use a lowercase name for contract's intance name, matching contract's file basename

for example, if solidity file is Token.sol, the autocompletion is provided for the word token. in lowercase.

const Token = artifacts.require("Token.sol");
let token = await token.new();

// token.<autocomplete> // <-- it should match Token.sol contract file basename, with all lowercase

// other examples
// SampleToken.sol -> use sampletoken.
// ERC20.sol       -> erc20.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft