将所有变量更改为特定的命名约定(小写)
是否有任何自动化方法可以将文件中的所有变量(与那里的参考)更改为特定的约定(较低情况),而无需更改整个线路?
我正在使用VSCODE IDE,但似乎无济于事,它只有助于一个一个人更改它们!
就我而言
local Device_MacAddress_f = ... >> local device_macAddress_f
local Device_Signalstate_f= ... >> local device_signalstate_f
local Device_Controller_f = ...
local Device_Timesinceboot= ...
local Device_Ipaddress_f = ...
local Device_Subnetmask_f = ...
local Device_Gateway_f = ...
local Device_Netbiosname_f= ...
local Device_Dhcpstate_f = ...
local Device_Fwversion_f = ...
local Device_Kernalversion= ...
local Device_Controllertype_f = ...
Is there any automated way to change all variables (alongside there references) in file to specific convention (lower case) without changing the whole line to lowercase?
I'm using VScode IDE but it doesn't seem to help, it only helps in changing them one by one!
In my case
local Device_MacAddress_f = ... >> local device_macAddress_f
local Device_Signalstate_f= ... >> local device_signalstate_f
local Device_Controller_f = ...
local Device_Timesinceboot= ...
local Device_Ipaddress_f = ...
local Device_Subnetmask_f = ...
local Device_Gateway_f = ...
local Device_Netbiosname_f= ...
local Device_Dhcpstate_f = ...
local Device_Fwversion_f = ...
local Device_Kernalversion= ...
local Device_Controllertype_f = ...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
启用正则搜索
。
Enable regex search .*
Search:
local Device_([A-Z])
Replace:
local device_\l$1