Book a Demo

Author Topic: Source Generator: Use Spaces Not Tabs  (Read 4466 times)

EricP

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Source Generator: Use Spaces Not Tabs
« on: June 15, 2011, 08:52:12 pm »
Using EA 7.5.850.

I'm looking for the option to tell the source code generator to use spaces instead of tabs, also looking for how to set the tab size.  I believe that a year or two ago I found the latter (setting tab size) and was able to set it to 2 spaces like I want, but now I can't find where I did that.

Appreciate any assistance anyone can provide.  Our coding standard requires spaces rather than tabs and so I'd like to be able to generate code that way rather than having to convert later.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Source Generator: Use Spaces Not Tabs
« Reply #1 on: June 16, 2011, 08:08:21 am »
There is no option, other than modifying all the templates.

EricP

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Re: Source Generator: Use Spaces Not Tabs
« Reply #2 on: June 16, 2011, 10:04:47 am »
Quote
There is no option, other than modifying all the templates.

OK... is there a document that tells how to modify the templates to do what I need?

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Source Generator: Use Spaces Not Tabs
« Reply #3 on: June 17, 2011, 08:17:29 am »
90% of it is by finding the %list="anything" .. @indent="\t"@

You'll also find tabs in the class body template for generating default constructors.