Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

forge fmt usage in zed #1342

Open
sakulstra opened this issue Oct 28, 2024 · 0 comments
Open

forge fmt usage in zed #1342

sakulstra opened this issue Oct 28, 2024 · 0 comments

Comments

@sakulstra
Copy link

Configuring foundry fmt to be used in zed is slightly different to vscode.

Not sure if it makes sense to add an extra page for zed? Was considering to do a pr, but seems to be not so reasonable.
Perhaps could make sense to change the docs layout to formatting -> setup instructions for different editor opposed to the current vscode page.

In case anyone is looking for it, here is how you can configure foundry fmt in zed:

"format_on_save": "on"
  "languages": {
    "Solidity": {
      "formatter": {
        "external": {
          "command": "forge",
          "arguments": ["fmt", "--raw", "-"]
        }
      }
    }
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: No status
Development

No branches or pull requests

1 participant