Is it possible to modify buttons size via code while in editor and not playtime?

Godot Version

4.3

Question

` Hi everyone, sorry if this might be a dumb question, but I couldn’t find a way to phrase it so google would show me relevant results. In my game I need to resize the buttons based on the text’s length, and I can achieve that in playmode with a simple script, but I was wondering if it was possible to achieve that just in the editor, as I am using an enum string to select the text.

Thanks in advance`

While browsing documentation I found what I was looking for, here’s the wiki page Running code in the editor — Godot Engine (stable) documentation in English