You can solve this by using Visual Studio temporary macros. This is a very powerful, flexible feature which I use all the time for performing repetitive code manipulations.
I'm assuming you're using the C# default key bindings here.
- Press CTRL+SHIFT+F to bring up the find in files dialogue.
- Click use "Regular expressions"
- Set "Find what:" to "
<m_:Ll
" - words that begin with m, underscore, then a lower case letter;
- Click "Find all" to search for all occurrences;
- Press CTRL+SHIFT+R to start recording temporary macro;
- Press F8 to find next occurrence of search expression;
- Press right cursor, right cursor, SHIFT + right cursor (to skip "m_" and then select the lower case letter);
- Press CTRL+SHIFT+U to uppercase the lower case letter;
- Press CTRL+SHIFT+R to stop recording temporary macro;
- Press CTRL+SHIFT+P to replay temporary macro, which will jump to next expression and uppercase the first letter after the "m_". You need to press CTRL+SHIFT+P as many times as there are expressions.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…