Is there a way to declare all global variables at ounce

after switching to the new version, each time i want to use a global variable it asks me to declare it. The window opens and it’s declared as scene variable. So I have to delete it , the open the global variable tab, erase the name field and write by hand the variable name. I have hundreds of variables. So is there a way to do it automatically or not do it at all?
It’s seems insane that nobody thought about this issue. There has to be another way

Since the variable action squish/merge, the expectation was established that variables must be predeclared, and have unique names across all scopes (similar to c/modern strict javascript).

You can predeclare global variables by going to the main global variables panel and declaring them there.

Unfortunately, there is no one-click migration for older projects, and as far as I know no plans to implement one. You will have to go through and predeclare your variable structure for any new variables or existing but undeclared variables from older projects.

Edit: note, child variables of structures/arrays do not have to be predeclared so long as the parent is predeclared.

I think the issue is when you type a variable name and then click the text below it to add the variable, it always adds it as a scene variable.

yes this and that I have to predeclare many variables by hand now