#学习笔记
初学solidity,使用remix非常方便,因为需要的环境都配置好了,打开网站就可以使用。
不过在编写代码方面,使用vscode更方便,而vscode本身并不能像remix那样部署合约,它还需要安装插件。

点击红色箭头指向的按钮,然后在红色框输入remix,安装即可。
安装之后是这样。

新建一个.sol文件,进行简单测试。

编译有问题,需要在文件开头加上// SPDX-License-Identifier: MIT

再次编译,成功,可以部署。

部署成功就可以看效果了。
更多配置,可以参考如何使用 VSCode、Remix 和 Truffle Suite 设置本地 Solidity 开发环境?_vscode solidity_chinadefi的博客-CSDN博客
Remix IDE 使用与 VSCode 搭建 Solidity 开发环境 - 掘金