RubyAMP 설치하기 (Textmate)

RubyAMP is a TextMate bundle that makes you more productive in editing, navigating, and debugging Ruby code. Now you can easily:

  • auto-complete from all open tabs
  • jump to a method, class, or fixture named under the cursor
  • start the debugger on a series of RSpec examples and break at the current line
  • inspect by highlighting to evaluate to tooltip or clipboard
  • fire up a Merb/Rails server or console for your current app
  • tail development.log

계속 “RubyAMP 설치하기 (Textmate)” 읽기

Textmate MissingDrawer

https://github.com/jezdez/textmate-missingdrawer

Changing the terminal application launched from the sidebar

By default, the “open terminal window” button launches the Terminal application. To use iTerm, run

$ defaults write com.macromates.TextMate TerminalLauncherAppName "iTerm" 

To reset back to Terminal, run

$ defaults write com.macromates.TextMate TerminalLauncherAppName "Terminal"

Bundler Gemfile syntax highlight in Text Mate

Bundler Gemfile syntax highlight in Text Mate

In Textmate, select the Bundles menu => Bundles editor

Select languages instead of show all.

Select the Ruby on Rails language within the Ruby on rails bundle

Change this line:

fileTypes = ( 'rb', 'rxml', 'builder' );
to this:

fileTypes = ( 'rb', 'rxml', 'builder', 'Gemfile' );
Go to Bundles => Bundles Editior => Reload Bundles.

Reopen your Gemfile and you should now be getting the syntax highlighting.

Textmate: Execute Inline Ruby

Textmate 에서 루비 코딩후 실행할 때는 command + R 키를 누르면 된다. 결과는 별도의 창이 떠서 보이게 되는데,  계속 작업을 하기 위해서는 결과창을 닫아야 하는 수고를 감수해야하며 매우 귀찮은 일이다.

그러나, Textmate에는 이러한 것을 간소화하여 편집창에서 바로 결과를 확인하면서 프로그래밍을 할 수 있는 팁이 있어서 소개한다.

동영상링크 : http://macdevelopertips.com/wp-content/uploads/2008/04/TextMateTip-001-execute-markers.mov

작성자 : 닥터최