Book a Demo

Author Topic: Generate Code With Spaces Instead of Tabs  (Read 5101 times)

unnamedharald

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Generate Code With Spaces Instead of Tabs
« on: September 23, 2003, 02:51:46 pm »
For the life of me I can't figure out how to tell EA to use spaces instead of tabs when it generates Java source code.  Surely there's a way-- tabs are evil and are to be despised in source code!


benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: Generate Code With Spaces Instead of Tabs
« Reply #1 on: September 30, 2003, 11:42:43 pm »
Hi unnamedharald,

There isn't currently a one-click on/off switch for this, but the code generation templates can be modified to use spaces instead of tabs.  Refer to the Help file for more details on modifying the code templates.  Basically you need to replace the macros like:

%list="Attribute" @indent="\t" ....% to

%list="Attribute" @indent="    " ....%

You'll find these in the Class Body template for Java.

Hope this helps.

Regards,
Ben.



unnamedharald

  • EA User
  • **
  • Posts: 20
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: Generate Code With Spaces Instead of Tabs
« Reply #2 on: October 06, 2003, 07:53:27 am »
Ben,

Thanks for the tip.