Forge Snippets for VS Code.
Installation is fairly easy, you just need to open (or create) the solidity snippet file in VS Code.
- Open the command palette
cmd + shift + p
in Mac orctrl + shift + p
on Windows - Copy the content of the soliditySnippets.json file.
- Paste it into the solidity snippet in VS Code.
Here is the list of current supported snippets.
Simple boilerplate structure for a test contract.
Simple boilerplate structure for a script contract.
A simple event.
SetUp function snippet.
Test function boilerplate.
Snippets for prank, startPrank, StopPrank and Deal cheatcodes.
Snippet for emit and expect event emition.
Snippet for revert checks.