Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

auto indent and tabs question

2. Help
John Mair
2008-06-30
2012-11-13
  • John Mair
    John Mair
    2008-06-30

    Hello,

    i have a couple of questions. The language i am using is Ruby.

    (1) How do i auto-ident? i want to do something like highlight my code, and select some menu option to
        indent the code properly according to the code blocks.

    (2) How can i set it up so that every time i press the 'tab' key, it's substituted instead by, say, four
        'space' characters.

    Thanks alot in advance,

    john

     
    • Ray StPierre
      Ray StPierre
      2008-07-03

      Your second question " How can i set it up so that every time i press the 'tab' key, it's substituted instead by, say, four 'space' characters." Can be accomplished with
      "Settings.....Preferences" select the "Edit Components" tab look on the right side for "Tab Setting" place a check mark in the "Replace by space" checkbox. Change the tab size in the same place.