3

是否有 Visual Studio 的 Add_in 会自动在我的方法名称单词之间插入下划线?

例如,我会写“ public void ChangeEmail Should Update Email()”,然后按快捷键,它会转换为“ public void ChangeEmail_Should_Update_Email()

4

2 回答 2

3

您可以使用 Jean-Paul Boodhoo 的BDD 宏- 但不确定是否是自动的。

请注意,最近 Jean-Paul 决定改用AutoHotKey - 请参阅以下 - 帖子So Long BDD Macro - Hello Autohotkey !!! BDD AutoHotKey 脚本更新 - Take 2

于 2010-07-19T01:25:52.997 回答
1

ReSharper can do this. You set your naming convention, type it incorrectly and CTRL-Enter will fix it. Among the millions of other features ReSharper adds to VS...

于 2010-07-20T16:43:09.587 回答