Coder Social home page Coder Social logo

pinkdiamond1 / vscode-vyper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dethcrypto/vscode-vyper

0.0 1.0 0.0 258 KB

Ethereum Vyper language support for Visual Studio Code

Home Page: https://marketplace.visualstudio.com/items?itemName=tintinweb.vscode-vyper

JavaScript 86.22% Python 13.78%

vscode-vyper's Introduction

get in touch with Consensys Diligence
[ ๐ŸŒ ๐Ÿ“ฉ ๐Ÿ”ฅ ]

vscode-Vyper

img

Ethereum Vyper language support for Visual Studio Code

Marketplace: ext install tintinweb.vscode-vyper

Features

Passive Features

  • Vyper syntax highlighting support

Active Features

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 in PATH) (Settings โ†’ Vyper โ†’ Command)
  • Integrates with MythX
    • sign-up with your ethereum address (username)
    • set your username and password (Settings โ†’ Vyper โ†’ MythX: Ethaddress / Settings โ†’ Vyper โ†’ MythX: Password or env.MYTHX_ETH_ADDRESS / env.MYTHX_PASSWORD; configuration takes precedence)
    • automatically analyze for security issues when saving the file (Settings โ†’ Vyper โ†’ Analysis: On Save)

Requirements

  • 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 in Settings โ†’ Vyper โ†’ Command

Tour

Syntax Highlighting

VSCode Light+ (default light)

theme-light

Solidity Visual Auditor - Dark

theme-light

Compiler Errors and Details

image

Hover information

image

Security Augmented Decorations - Auditor Mode

image

Snippets

  • 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 ...

image

  • creates a template constructor after selecting it from the suggestion box.

image

Extension Settings

settings

Developer Notes

  • install vyper pip3 install vyper
  • use the script in ./scripts/fetch_vyper_language_spec.py or run npm run fetchGrammar to merge the python tmlanguage spec with vyper language specifics.

Release Notes

see CHANGELOG

v0.0.10

  • 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

vscode-vyper's People

Contributors

dependabot[bot] avatar hasparus avatar tintinweb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.