Home

Awesome

VS Code Forge Snippets

Forge Snippets for VS Code.

Installation

Vs Code Marketplace

Install this extension on VS Code marketplace. on the following place: https://marketplace.visualstudio.com/items?itemName=Crisgarner.foundry-snippets

VSIX

For users who want to use a VSIX file, they can install the extension with the following command:

 code --install-extension releases/foundry-snippets-1.0.0.vsix

Snippets

Here is the list of current supported snippets.

Init

Simple boilerplate structure for a test contract.

1

Script

Simple boilerplate structure for a script contract.

script

Event

A simple event.

2

SetUp

SetUp function snippet.

3

Test

Test function boilerplate.

4

Prank Cheatcodes

Snippets for prank, startPrank, StopPrank and Deal cheatcodes.

5

Expect Event

Snippet for emit and expect event emition.

6

Expect Revert

Snippet for revert checks.

7

Release Notes

All notable changes to this project will be documented in this file.

1.0.0

Initial release of Forge Snippets.