Remix IDE Setup for Development
Remix is a browser-based IDE for Solidity that works without installation and lets you deploy a contract to mainnet in 10 minutes. This makes it an excellent tool for prototyping and quick experiments. But without proper configuration, Remix lags, loses files when the browser reloads, and doesn't provide decent autocomplete. Below is a specific configuration that makes it a workable tool.
Key Settings
Remixd for local file system. By default, Remix stores files in the browser's IndexedDB — unreliable and doesn't integrate with git. Install @remix-project/remixd globally via npm and run it pointing to your project directory. Remix will connect to localhost and work with real files on disk.
npm install -g @remix-project/remixd
remixd -s ./my-contracts --remix-ide https://remix.ethereum.org
In Remix, enable the "Remixd" plugin in the sidebar — files will appear in the file explorer.
Compiler version. In the Solidity Compiler section, explicitly pin the version — not "auto". The version must match the pragma in your contracts and match what's specified in hardhat.config.ts / foundry.toml if the project is being developed in another environment in parallel. Version mismatches are a source of bytecode discrepancies during verification.
Optimization. Enable "Enable optimization" with runs=200 only if you plan to deploy with optimization. For educational contracts — you can skip it. Importantly: the setting must match your deploy configuration.
Local network connection. In the Deploy & Run section, select "Custom - External Http Provider" and specify http://127.0.0.1:8545 to connect to a local Hardhat node or Anvil (Foundry). This gives unlimited ETH on test accounts and instant transactions without waiting.
MetaMask for testnets. For deployment on Sepolia or Polygon Mumbai — select "Injected Provider - MetaMask". MetaMask should be switched to the correct network before opening Remix.
Useful Plugins
- Solidity Unit Testing — run tests directly in the browser without Node.js. Sufficient for simple unit tests.
- Gas Profiler — shows gas consumption by function. Useful for initial optimization before moving to Hardhat/Foundry.
- Etherscan — verify contract directly from Remix after deployment. Requires Etherscan/Polygonscan API key.
- Debugger — step-by-step transaction debugging with stack and storage view at each EVM step. Invaluable when analyzing failed transactions.
Remix Limitations
Remix doesn't replace Hardhat or Foundry for production development. No proper fuzz testing, no fork tests on mainnet state, no CI/CD integration. For a prototype, quick idea validation, or client demo — excellent. For a full project — Remix as a supplement, not the primary environment.
Setup takes 2-3 hours including remixd, plugins, and test environment configuration.







