How to reload file in Zed

Keywords for the possible searches:

  • map a key to reload files in Zed
  • Zed editor reload file shortcut
  • Zed reload shortcut
  • Zed keybinding reload
  • Zed reload file

We have the ability to reload files in Zed since Oct 16, 2024 thanks to this PR: https://github.com/zed-industries/zed/pull/18395.

  • The manual way is to open a command palette: CMD + P and type reload file.
  • If you want to set a shortcut/keybinding, just open a keymap.json and paste the code from below.
{
    "context": "Editor",
    "bindings": {
      "cmd r": "editor::ReloadFile"
    }
}

That’s all.


Telegram channel

If you still have any questions, feel free to ask me in the comments under this article or write me at promark33@gmail.com.

If I saved your day, you can support me 🤝