Convert variables between camel case and underscore style

I would like to convert variables from or to UpperCamelCase, lowerCamelCase, underscore_style, or even "separate by spaces". This would be useful for coding and making documentation.

I use Sublime Text 2. Can this be done in this editor?


Solution 1:

The Case Conversion plugin can do this for Sublime Text 2 and 3.

You can install it with Package Control. If you haven't done so, install Package Control first, then press Ctrl-Shift-P or Cmd-Shift-P, go to Package Control, Install Package, and install Case Conversion.

It adds new entries to your Convert Case menu.