Go into the console in-game and type in "$", then keep pressing / hold down tab.
It's a little slow, but it works.
Another solution:
I've noticed that with the previous way, it always seems to stop on variables starting with the letter "S."
In order to work around this, I simply wrote some code to export all variables except for those beginning with S. This seems to work perfectly, and for variables beginning with S you can use the above solution.
function exportGlobalVars(%letter)
{
export("$"@%letter@ "*","config/varlists/list_"@%letter@ ".cs");
}
exportGlobalVars("a");
exportGlobalVars("b");
exportGlobalVars("c");
exportGlobalVars("d");
exportGlobalVars("e");
exportGlobalVars("f");
exportGlobalVars("g");
exportGlobalVars("h");
exportGlobalVars("i");
exportGlobalVars("j");
exportGlobalVars("k");
exportGlobalVars("l");
exportGlobalVars("m");
exportGlobalVars("n");
exportGlobalVars("o");
exportGlobalVars("p");
exportGlobalVars("q");
exportGlobalVars("r");
//exportGlobalVars("s");
exportGlobalVars("t");
exportGlobalVars("u");
exportGlobalVars("v");
exportGlobalVars("w");
exportGlobalVars("x");
exportGlobalVars("y");
exportGlobalVars("z");
If you know of an easier way to omit the letter S, please let me know, because I'm sure this could be improved.