Switch to the previously active tab (last tab) by pressing Ctrl+Tab (macosOption+Tab), including last doc, script and scene tabs.
This is a regular editor plugin.
Copy the contents of addons/previous-tab into the same folder in your project, and activate it in your project settings.
or plug with gd-plug:
plug("MakovWait/godot-previous-tab")Godot4 editor plugin.
More plugins godot4-plugins
