1# GDScript
2
3Godot [GDScript](https://gdscript.com/) language support in Zed is provided by the community-maintained [GDScript extension](https://github.com/grndctrl/zed-gdscript).
4Report issues to: [https://github.com/grndctrl/zed-gdscript/issues](https://github.com/grndctrl/zed-gdscript/issues)
5
6- Tree-sitter: [PrestonKnopp/tree-sitter-gdscript](https://github.com/PrestonKnopp/tree-sitter-gdscript) and [PrestonKnopp/tree-sitter-godot-resource](https://github.com/PrestonKnopp/tree-sitter-godot-resource)
7- Language Server: [gdscript-language-server](https://github.com/godotengine/godot)
8
9## Setup
10
111. Download and install [Godot for macOS](https://godotengine.org/download/macos/).
122. Unzip the Godot.app and drag it into your /Applications folder.
133. Open Godot.app and open your project (an example project is fine)
144. In Godot, Editor Menu -> Editor Settings; scroll down the left sidebar to `Text Editor -> External`
15 1. Use External Editor: "✅ On"
16 2. Exec path: `/Applications/Zed.app/Contents/MacOS/zed`
17 3. Exec flags: `{project} {file}:{line}:{col}`
18 4. Close settings to save.
195. In Godot double click on a \*.gd script and Zed will launch
20
21<!--
22TBD: GDScript Linux setup
23-->
24
25## Usage
26
27When Godot is running, the GDScript extension will connect to the language server provided by the Godot runtime and will provide `jump to definition`, hover states when you hold cmd and other language server features.
28
29> Note: If Zed is already running with an existing workspace, spawning from Godot will fail. Quit Zed and it should work again.