1/5
## Vyper VS Code Extension We'll go back to the GitHub repo for this course: [link to repo] and then we can either grab the `favorites.vy` file from the Web3py Favorite's Cyfrin Updraft, or go back to the Moccasin full course. We'll scroll up and look for the Favorite's Cyfrin Updraft repo. We'll click the `favorites.vy` file and then copy the entire file. Next, we'll go to our VS Code and right-click in the file explorer. We'll create a new file and name it `favorites.vy`, and then paste the copied code into it. We'll now have our smart contract in our code editor. It's likely to look pretty rough and lack syntax highlighting. Remember that Remix has really nice syntax highlighting. We can get the same functionality in VS Code by using an extension. We'll go to the Extensions tab in VS Code and search for "Vyper". We'll see the "Vyper" extension by TintinWeb. We'll install it. We'll now see that our Vyper file is highlighted very nicely. **Tip:** If you have Vyper installed, you can type `which Vyper` in your terminal. This should show you the version you have installed. You might also see some red squiggly lines, this could be an indication that you have the wrong version of Vyper installed. But, if you've been following along in the previous sections, then you should have the right version. We'll cover how to fix this in a later section, but for now, we're going to keep moving forward.
A comprehensive guide to using the Vyper VS Code Extension. This lesson demonstrates how to install the extension, integrate it with VS Code, and leverage its syntax highlighting and error detection features for efficient Vyper development.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
Python basics
Introduction to Web3.py
Introduction to Titanoboa
Introduction to Moccasin
How to create an ERC-20
How to test Python code and Vyper smart contract
How to deploy Vyper smart contracts on ZKsync using Moccasin
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on April 21, 2025
Duration: 2h 20min
Duration: 1h 51min
Duration: 58min
Duration: 2h 23min
Duration: 53min
Duration: 2h 24min
Duration: 28min
Duration: 1h 54min
Duration: 11min
Course Overview
About the course
Python basics
Introduction to Web3.py
Introduction to Titanoboa
Introduction to Moccasin
How to create an ERC-20
How to test Python code and Vyper smart contract
How to deploy Vyper smart contracts on ZKsync using Moccasin
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on April 21, 2025
Testimonials
Read what our students have to say about this course.
Chainlink
Chainlink
Gustavo Gonzalez
Solutions Engineer at OpenZeppelin
Francesco Andreoli
Lead Devrel at Metamask
Albert Hu
DeForm Founding Engineer
Radek
Senior Developer Advocate at Ceramic
Boidushya
WalletConnect
Idris
Developer Relations Engineer at Axelar