@m4zuper Strange, as this is broken at least since 26.8.0 or something related to this. Hence I thought it's generally not working an concerns every user...
Currently using 27.6.2 on Windows 10, 64BG RAM, Ryzen 7 5800X. BAS is installed at the standard location on C drive. And it happens with every project I try to add this way. Okay, it's not that issue but it's convient to add a project with just one click.
How to rename all variables at once in the project
-
Hello, I have a huge project and I have a global variable that bothers me because I have changed the way it works.
If I have to rename it manually, I'm in for the day.
So I tried with the script directly that works however in the bottom display I still have the old variable that is displayed because if I understand correctly
the /*Dat:eyJzIjoiY3VzdG9tIiwidiI6... contains the data that bas displaysDo you have a solution for renaming variables without using the editor? Thanks
-
@pronokush said in How to rename all variables at once in the project:
Do you have a solution for renaming variables without using the editor?
BAS doesn't have any tools for refactoring; every programmer must create them for themselves. That's our reality.
I believe you need a script that parses the XML file of the BAS project and changes:
- the base64 code that displays the code in the BAS IDE
- the code that changes the logic of code execution
-
@pronokush said in How to rename all variables at once in the project:
Hello, I have a huge project and I have a global variable that bothers me because I have changed the way it works.
If I have to rename it manually, I'm in for the day.
So I tried with the script directly that works however in the bottom display I still have the old variable that is displayed because if I understand correctly
the /*Dat:eyJzIjoiY3VzdG9tIiwidiI6... contains the data that bas displaysDo you have a solution for renaming variables without using the editor? Thanks
There is no such tool yet, but it is in development plans. Now you can write a script that changes the names of variables in the base64-encoded line of the technical description of the action, and then use the automatic actions update tool so that changes are applied to the action code following the interface