简单的方法来blockcaps转换为驼峰的工作室? [英] Easy way to convert blockcaps to camelcase in Studio?

查看:63
本文介绍了简单的方法来blockcaps转换为驼峰的工作室?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一堆的C定义,我需要移植到C#。在C定义在用下划线挡帽,净枚举应驼峰。

I have a bunch of C defines that I need to port to C#. The C defines are in block caps with underscores, .Net enums should be camelcase.

自动将它们转换的方法吗?一些工具,我不知道,或者一个神奇的正则表达式吧?

Any way of converting them automatically? Some tool I'm not aware of, or a magic regex perhaps?

如:

BOOTSTRAP_NOT_SUPPORTED - > BootstrapNotSupported

推荐答案

您可以导入定义到 C#项目,并通过使用的 ReSharper的,你将能够重构并迅速accuratly重新命名它。

You can import your defines into your C# project and by using Resharper you will be able to refactor and rename it quickly and accuratly.

这篇关于简单的方法来blockcaps转换为驼峰的工作室?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆