Ethereum Vyper language support for Visual Studio Code
Marketplace: ext install tintinweb.vscode-vyper
- Vyper syntax highlighting support
Note: Active features can be disabled by setting Settings
→ Vyper
→ Mode: Active
to false
.
- Provides Security augmented decorations (
Settings
→Vyper
→Decoration: Enable
) - Provides Hover information (
Settings
→Vyper
→Hover: Enable
) - Provides Code snippets for common language constructs
- Integrates with the vyper compiler (based on
truffle-compile-vyper
)- automatically compile contracts on save (
Settings
→Vyper
→Compile: On Save
) - compilation can be triggered by executing a vscode command (
cmd + shift + p
→Vyper: Compile
) - vyper location/command can be customized (default assumes
vyper
is inPATH
) (Settings
→Vyper
→Command
)
- automatically compile contracts on save (
- Integrates with MythX
- sign-up with your ethereum address (username)
- set your username and password (
Settings
→Vyper
→MythX: Ethaddress
/Settings
→Vyper
→MythX: Password
orenv.MYTHX_ETH_ADDRESS
/env.MYTHX_PASSWORD
; configuration takes precedence) - automatically analyze for security issues when saving the file (
Settings
→Vyper
→Analysis: On Save
)
- It is assumed that vyper is installed and generally available on the system (
pip install vyper
). In case vyper is not available in path or called in a virtualenv configure the vyper command inSettings
→Vyper
→Command
- Quickly create
constructor
,fallback
function,methods
,structs
, ... as you type. Select the snippet from the suggestion box. See snippets/vyper.json for a list of available snippets. - start typing ...
- creates a template constructor after selecting it from the suggestion box.
- install vyper
pip3 install vyper
- use the script in
./scripts/fetch_vyper_language_spec.py
or runnpm run fetchGrammar
to merge the python tmlanguage spec with vyper language specifics.
see CHANGELOG
- fix: an issue where the compilation would fail on windows systems #4
- update: disabled mythx.io trial code
- update: disabled signature helper (not yet implemented)
- update: quick code cleanup
- fix: allow workspace relative
vyper.command
#3