开发者

How to automatically insert underscores between my method name words?

开发者 https://www.devze.com 2023-01-06 18:20 出处:网络
Is there an Add_in to Vis开发者_开发技巧ual studio which automatically inserts underscores between my method name Words?

Is there an Add_in to Vis开发者_开发技巧ual studio which automatically inserts underscores between my method name Words?

For example i will write "public void ChangeEmail Should Update Email()" then press a shortcut and it will convert to "public void ChangeEmail_Should_Update_Email()"


You can use Jean-Paul Boodhoo's BDD Macro - not sure about automatic though.

Note, more recently Jean-Paul has decided to move towards using AutoHotKey instead - see the following - posts So Long BDD Macro - Hello Autohotkey!!! and BDD AutoHotKey Script Update - Take 2.


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...

0

精彩评论

暂无评论...
验证码 换一张
取 消