Remix is one of the IDE that is used to develop, compile, deploy and test smart contracts. Remix can be used by two ways, one is browser based and other is IDE. In previous post, I already shown how to install IDE and use that, in case you missed that post, click on this link to go over that post.
Go over the below Video to see the steps for Linux operating system.
When you use browser based IDE, below are the main challenge faced by developer
- Storage of the solidity smart contract files.
- Loss of code in case browser stopped working and you need to start it again
Remix does provide solution to these challenges as well by providing the option to connect to your local file system from Remix browser based IDE so that all solidity smart contracts get stored in your local file system.
In case you are not aware how to enable access of local file system from remix IDE, this is the post for you. Let's see how to do this.
Step 1: Install RemixD: To access your local file systems from remix IDE, you need to install RemixD that enable the connection between your local file system and Remix IDE. To Install RemixD, open the command prompt and run below command.
npm install -g remixd
Step 2: Start the RemixD and share folder: Once RemixD is installed, next step is to start it and enable access to local shared folder. For that, run below command.
remixd -s <absolute path to shared folder>
Step 3: Enable connection from Remix: Once RemixD is installed, next step is to enable the connection to local file system from Remix, for that go to Remix browser IDE and click on "localhost connection" icon shown in below screen shot.
It open up new pop-up where you can find all the details, you just need to click on "Connect" button to confirm the connection.
Once connection is made, "localhost connection" become green and localhost folder gets added in file explorer.