Author Topic: ruby syntax  (Read 6010 times)

asipe

  • Senior Community Member
  • Posts: 113
  • Hero Points: 4
ruby syntax
« on: October 23, 2006, 06:44:15 PM »
While working with ruby in SE I noticed a 'feature' that I'd like to turn off.   I've only seen this with ruby files.

When I type a [ SE will automatically put in a trailing ].   When I type a { SE will automatically put in a trailing }.   For me this is a real pain because then I have to move past the trailing character manually after I enter the content.   

Some examples:

Dir[*.dat].each {|file|.....
puts "today is #{now.to_s}"

In both those cases, the auto injection happens on the [ and the {.

Is there anyway to turn this off or configure which items it makes sense for?    I've tried several settings in the file extension configuration but I can't seem to turn it off.

Thanks -andy

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: ruby syntax
« Reply #1 on: October 23, 2006, 06:47:50 PM »
Andy -

Go to Tools>Options>Key Bindings and unbind those keys.

Hope this helps,

Dan

asipe

  • Senior Community Member
  • Posts: 113
  • Hero Points: 4
Re: ruby syntax
« Reply #2 on: October 23, 2006, 07:32:35 PM »

Go to Tools>Options>Key Bindings and unbind those keys.


The [ and { keys aren't bound to any macro or command that I can see.

Any other ideas?

-andy

Dan

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2897
  • Hero Points: 153
Re: ruby syntax
« Reply #3 on: October 23, 2006, 07:35:38 PM »
Try unchecking "Affect all modes", I think this is the problem.

asipe

  • Senior Community Member
  • Posts: 113
  • Hero Points: 4
Re: ruby syntax
« Reply #4 on: October 23, 2006, 08:14:52 PM »
That did it - thanks.

-andy