Smart Contracts (Solidity) coding using Visual Studio Code


Visual Studio Code is the open source editor with powerful developer tooling. It works on Windows, Linux and Mac. Visual Studio Code is also a great editor for developing of smart contracts with Solidity. VS Code provides syntax highlighting, compilation of current contract and all contracts.

If you haven’t downloaded Visual Studio Code, download and install code from the below link.

For developing Solidity using Visual Studio Code you first need to install the Solidity Extension. For that open Visual Studio Code and using menu click View -> Extensions and search for Solidity and click install. Once the extension is installed you can start coding solidity smart contracts.

To compile the contract click F5. If there are no error messages, you will get the success message as shown below:

If there is a compile error then the error is highlighted as shown below

Overall Visual Studio Code is a good editor for developing smart contracts for Ethereum.

2 comments:

  1. Definitely, you surprised me, and I find your code useful, I plan to try it. Even I couldn`t imagine that Visual Studio code would be somehow
    connected with cryptocurrency and coding of the blockchain as like Ethereum. Probably the fact is that I'm still green in working with Visual tools and having recently completed the installation msvcp140.dll missing https://fix4dll.com/msvcp140_dll files.
    And next step I'm gonna taking parts of the code you share and test it. I think that by such practical methods of working out I can learn more than just looking through tutorials.

    After all, practice is based on a particular task that needs to be solved, and I like it more.

    ReplyDelete
  2. Hi, I find reading this article a joy. It is extremely helpful and interesting and very much looking forward to reading more of your work.. real world smart contracts

    ReplyDelete

Ethereum Solidity Compiler

Ethereum contracts are written in the high level language called Solidity and compiled into bytecode using the Solidity compiler. This ...