2.1 KiB
2.1 KiB
Solidity Layer
Description
A layer to support Solidity development in Spacemacs.
Features:
- Syntax highlighting
- Syntax checking
- Gas estimation
Install
Layer
To use this configuration layer, add it to your ~/.spacemacs
. You will need to
add solidity
to the existing dotspacemacs-configuration-layers
list in this
file.
Linter
solc
Ethlint
To use solium flycheck checker, install Ethlint.
npm i -g ethlint
Then enable it in your ~/.spacemacs
:
(solidity :variables
solidity-flycheck-solium-checker-active t)
And make sure that .soliumrc.json
exists in the root directory of your DApp:
solium --init
Options
Variable | Default value | Description |
---|---|---|
solidity-flycheck-solc-checker-active |
nil |
If non-nil, use solc flycheck checker for Solidity Mode. |
solidity-flycheck-solium-checker-active |
nil |
If non-nil, use solium flycheck checker for Solidity Mode. |
Key bindings
Key binding | Description |
---|---|
SPC m g |
Estimate gas at point |