Book a Demo

Author Topic: Internal editor / code gen, use spaces not tabs  (Read 3832 times)

EricP

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Internal editor / code gen, use spaces not tabs
« on: August 01, 2009, 01:24:04 am »
Using EA 7.1 build 831...

Is there a way, that I am missing, to tell the internal editor AND the code generation capability to use spaces instead of tabs, and also to set the number of spaces in a tab stop?

I can use an external editor if I want spaces instead of tabs, if that is what I have to do, but the source code engineering code generator inserts tabs and I'd really much rather tell it to insert spaces at the rate of 2 or 3 spaces per tab stop.

If there is a way to do that in 7.1 I'd appreciate knowing about it, and if it's available only in 7.5 please let me know that, too.

Thanks...

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Internal editor / code gen, use spaces not tab
« Reply #1 on: August 03, 2009, 08:40:51 am »
For code gen, you would need to modify the templates.  For the editor, I don't think there is an option in 7.1.  But you can do it in 7.5 using a config file.  (Look under the Config directory in EA.)

EricP

  • EA User
  • **
  • Posts: 122
  • Karma: +0/-0
    • View Profile
Re: Internal editor / code gen, use spaces not tab
« Reply #2 on: August 03, 2009, 08:49:43 am »
Quote
For code gen, you would need to modify the templates.  For the editor, I don't think there is an option in 7.1.  But you can do it in 7.5 using a config file.  (Look under the Config directory in EA.)

Good evening, Simon.  Thanks for the info.  As I said I don't like upgrading my tools in the middle of a project but you just gave me a good excuse to do it.  :-)

I did figure out where to modify the template to put the brace on the next line and use spaces instead of tabs (sort of), which is to say if I substitute two spaces for every instance of "\t" then it seems to work (so far at least), but it does seem like there must be a better way.

I'll go ahead and install 7.5 and see what I get.