Use Ultraedit to extract variable declaration

来源:互联网 发布:python gui编程 编辑:程序博客网 时间:2024/05/22 18:55

if we have to define quite a number of constants, or global variables, it would be easier to use ultraedit to extract variable declaration from variable definitions.copy variable definitions to ultraedit, eg, copy the following to ultraedit:LPCTSTR aaa = _T("This");LPCTSTR aa2 = _T("contributed");LPCTSTR aa2 = _T("by www.fruitfruit.com");choose menu of ultraedit Search->Replace,Find What: %^(*^)=^(*^);Replace With: extern ^1;select "Regular Expression"select "Replace All is From Top of File"Replace Where: Current Filehit button "Replace All"

Other Visual Studio related regex is posted here: http://onegazhang.spaces.live.com/blog/cns!D5E642BC862BA286!729.entry

 

原创粉丝点击