RubyMine 7.0.2 Web Help

Toggling Case

To toggle between upper case and lower case

  1. Select text fragment, or just place the caret at the line you want to change case in.
  2. On the main menu, choose Edit | Toggle Case , or press Ctrl+Shift+U.

To toggle between camelcase and snake_case

  1. Select text fragment you want to change case in.
  2. On the main menu, choose Edit | Toggle Camel/Snake Case , or press Ctrl+Alt+U.

If you type a variable name using CamelCase, RubyMine detects deviation from naming conventions, and suggests to convert such name to snake_case:

ruby_toggleCamelToSnake.png

See Also

Web Resources:

Last modified: 24 January 2015
comments powered by Disqus