CopyFileLine is a lightweight Godot 4.5.1+ editor plugin designed to make sharing code, reporting bugs, and documenting workflows faster and easier.
No more manual entry of file paths and line numbers. With one click or keystroke, instantly copy references like res://path/to/file.gd:42 or /absolute/path/to/file.gd:42. Perfect for sharing snippets, reporting issues, or linking specific lines in conversations and documentation.
- Resource Path Mode – Copy Godot resource paths like
res://path/to/file.gd:42 - Filesystem Path Mode – Copy absolute filesystem paths like
/Users/you/project/file.gd:42 - Keyboard Shortcuts – Ctrl+Shift+C for resource paths, Ctrl+Shift+Alt+C for filesystem paths
- Customizable Shortcuts – Configure keybindings in Editor Settings
- Tools Menu Access – Available via Project > Tools menu
- Zero Friction – Works seamlessly with Godot's script editor
- Clone or download this repository
- Copy the
addons/copy_file_linefolder to your project'saddons/directory - Go to Project Settings > Plugins
- Find "CopyFileLine" and toggle it Enabled
- Done! Start using it immediately
- Open any script in the editor
- Position your cursor at the target line
- Use one of the following methods:
- Ctrl+Shift+C – Copy resource path (e.g.,
res://scenes/player.gd:42) - Ctrl+Shift+Alt+C – Copy filesystem path (e.g.,
/Users/you/project/scenes/player.gd:42)
- Project > Tools > Copy File:Line (res://) – Copy resource path
- Project > Tools > Copy File:Line (filesystem) – Copy filesystem path
The reference is instantly copied to your clipboard.
To change the default keyboard shortcuts:
- Go to Editor > Editor Settings
- Select the General tab
- Search for
copy_file_line - Click on the shortcut you want to modify and set your preferred keybinding
Your customization persist across Godot restarts.
- Godot 4.5.1+
- Editor-only plugin (
@toolscript)
- Bug Reports – Share exact line references in issues
- Resource path:
res://scenes/player.gd:156 - Filesystem path:
/Users/dev/project/scenes/player.gd:156
- Resource path:
- Code Reviews – Link to specific lines in PR discussions
- Documentation – Reference code snippets with line numbers
- Team Collaboration – Quickly communicate code locations
- External Tools – Copy filesystem paths for IDEs, terminals, or build systems:
/home/user/game/scripts/player.gd:42 - IDE Integration – Share absolute paths for opening in external editors
- Debugging – Include full filesystem paths in error reports for easier navigation
MIT License - ©2026 ッFlorin