GDSCRIPT FUNCTION HELPER
a simple godot 4 plugin that helps you write functions faster by auto-completing return types and adding default return values. just write your function and hit tab.
this plugin adds the return type for you (-> void if you don't specify one), puts in default return values, keeps your parameters and types intact, and works with partial or complete function declarations.
DEFAULT RETURN VALUES
voidfunctions getpassboolfunctions getreturn falseintfunctions getreturn 0floatfunctions getreturn 0.0Stringfunctions getreturn ""Arrayfunctions getreturn []Dictionaryfunctions getreturn {}- Objects like
Nodegetreturn null
HOW IT WORKS
type your function, then press Tab to complete it. the examples below show what you type and what happens after pressing Tab.
WITH COMPLETE FUNCTIONS
WITH INCOMPLETE FUNCTIONS
WITH ARROWS
WITHOUT ARROWS
PRESERVING PARAMETERS
INSTALLATION
Download the plugin
either from the GitHub repository or the Godot Asset Library.
Install in your Godot project
extract the downloaded files into your project's
addons/folder.Enable the plugin
in godot, go to project → project settings → plugins tab, and enable "gdscript function helper".
Start coding
open any gdscript file and start writing functions faster!
COMPATIBILITY
this plugin is designed for godot 4.x and has been tested with versions up to 4.3. it's a simple plugin focused on making function writing faster and more convenient.
if you encounter any issues, feel free to file an issue on the GitHub repository with details about what's going wrong, your Godot version, and your operating system.