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.

Aptana RadRails Debugger Problem

I've found the debugger equally slow when launching it via the "servers" tab.

There is a new "remote debug" capability in the trunk version of RadRails. Instead of launching a server from within RadRails, you can start your server externally (on the same or a different computer) under the control of debug-ide and then attach to it from a debug session in RadRails.

I've been using this capability, and found that it also solves the "slow debugger startup" problem.

Not sure why, and I wouldn't have expected it, but it's what I've observed.