Radrails editor shortcut keys

Ctrl-Alt-T: Jump to the test case of a model or controller and vice versa.

Ctrl-Shift-V: Jump to the view of a controller method and vice versa.

Ctrl-Alt-X: Extract partial from a view. Simply select the code block you
want to factor out into a separate partial an press the key combination. A
window opens an you can enter the name for the new partial (dont̢۪t forget
the _ and the .rhtml).

Ctrl-Shift-F: Auto-format the selected code (Ruby only). Not that mature, yet,
and seems to have problems with regular expression - currently not recommended
to use.

Ctrl-Shift-C (or Ctrl-/): Toggle comment (Ruby only), i.e. the selected code
block will be commented out if it wasn't (# are inserted in the first column
of each row), and vice versa.

Ctrl-Shift-R: Search a file in all open projects and jump to it just by
pressing enter. The search is incremental. This tools makes browsing in a
project extremly fast as you can do it without ever touching your mouse.

Also: Window->Preferences->General->Keys.

No comments: