Friday, November 07, 2008

APTANA ,RDT and RadRails Keyboard Shortcuts

RDT together with RadRails on Eclipse is a pretty convenient development environment when doing things in Ruby on Rails. The keyboard shortcuts.

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

Factor out a 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

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.

You can also keep up with general Aptana updates as well as RDT and RadRails specific news on the Aptana blog.