Closed fvet closed 2 years ago
I get the point.
I think I'll add then a setting like you suggested:
"alCodeActions.prefixesOfVariables": ["pint", "pcod", ...]
And then there could be a code action "Remove Prefixes of variables".
But I think this has a lower prio than 118 or 119, right? So it may be queued up a bit, I hope that's fine. Maybe you can pray for some rainy days, then it'll be implemented faster by me :)
All the best and thanks for your ideas! David
This one is indeed a (very) nice to have (the others are far more usefull for us and the community I suppose)
It would be nice if we had a code action on 'procedure' level that allows to replace any (legacy) hungarian notations. Right now we're forced to do a 'rename symbol' on each function parameter. (I'd limit the action to function parameters / return variables only, since these are exposed externally. Locals can remain the same)
expected result
Other option might be to have a (powershell) script available on file / workspace level, that applies the rule to all files. Not sure if a 'rename symbol' would then still be required, or if a simple 'replace all' could do the trick. (function parameters for integrationevents should not be changed)
Preferably with a pre-defined list of values to be replaced : pint, pcod, pvar, ptxt, prec, pdec, ...