Easily create missing functions or getter/setters for variables in Godot on the fly.
You can install it via the Asset Library or downloading a copy from GitHub.
✨ Even function arguments and return types are considered, for both native and custom methods. ✨
Shortcuts are configurable in the Editor settings. Under "Plugin > NHB Functions On The Fly"
| Create function Ctrl + [ | Create getter/setter variable Ctrl + ' |
|---|---|
|
|
- Write
my_button.pressed.connect(on_button_pressed) - Select
on_button_pressedor put cursor on it - Now you can either
- Right click > "Create function"
- Ctrl + [
- ⌘ Command + [ (Mac)
- Function arguments and return type (if any, based on variable/signal signature) will be considered.
- Write
var my_varorvar my_var: Stringorvar my_var: String = "Hello world" - Select
my_varor put cursor on it - Now you can either
- Right click > "Create get/set variable"
- Ctrl + '
- ⌘ Command + ' (Mac)
- Return type (if any) will be considered
- Clone git repository
- Copy
.env.distto.envand update path to Godot executable - You need
node v20in order to pass unit tests on commit - Execute
yarn
Please make sure to write/update unit tests in test directory for any new features.
You can run tests in Godot or via command line.
$ yarn test:unit- Initial idea and get/set variable creation: u/siwoku
- Get text under cursor, so you don't have to select the text: u/newold25
- Maintainer, considering indentation type, adding shorcuts: u/NickHatBoecker
Pleae feel free to create a pull request!

