Smart Contract Template VSCode Extension
Last updated
Last updated
Smart Contract Generation with VSCode Extension
Concordium now has a direct extension on VSCode that allows you to easily set up your projects within minutes. You can use the search box in VSCode to find it and click the “Install” button to install it and then “Enable”.
Let’s create our project using the VSCode extension, open up VSCode’s Command Palette and start typing Concordium, you should be seeing the list of commands applicable. By default, you can open up using the shortcuts below.
macOS: Command+Shift+P
Windows: Ctrl+Shift+P
Linux: Ctrl+Shift+P
Select “Initialize a smart contract project” and click your folder to set up your project.
Then you will have two template options including cis2-nft and default. Continue with cis2-nft, give your project a name, specify a URL of your token’s metadata, and add a description.
Now let’s build it. Open up the “Command Pallette” again, and select “Build contract” this time, please note that this option will build your contract and embed your schema in the module.
You can find the module file in the created folder called “concordium-out”.