Book a Demo

Author Topic: space character in generated code  (Read 4017 times)

rostom

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
space character in generated code
« on: May 28, 2002, 09:32:08 am »
It would be nice to have an option of choosing the generated code to use space characters instead of the default tabs that are put in for indentation.  Right now, I have to go into my Java IDE and delete all the tab characters that EA inserts and replace them with spaces.

On a similar note, having the option to choose the number of space characters for indentation in generated code would be a useful option as well.

gsparks

  • EA User
  • **
  • Posts: 325
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: space character in generated code
« Reply #1 on: May 28, 2002, 09:05:39 pm »
Hi,

The simplest solution would be for EA to post-process the source file and convert any tab to spaces before writing.

The drawbacks are that ALL tabs would be converted - even if they were in code and required. If this is not an issue, then I could add a local option to do this - you would specify the number of spaces to replace tabs with.

If this sounds acceptable let me know and Ill schedule some time to do it.

Geoff Sparks

rostom

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: space character in generated code
« Reply #2 on: May 29, 2002, 09:06:15 am »
yes i do think having the option to choose the number of space characters is a good benefit over the drawbacks.

Duc-bert

  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
  • I love YaBB 1 Gold!
    • View Profile
Re: space character in generated code
« Reply #3 on: May 29, 2002, 01:04:52 pm »
RealJ is a free IDE that change tab to spaces, linebreak in a click of a button.
Can EA provide an option so we can choose to use either spaces or tabs?
Enjoy.