Two questions

Posts   
 
    
Stevenn
User
Posts: 30
Joined: 26-Sep-2007
# Posted on: 02-Feb-2011 08:52:49   

Hi,

just a curiosity,

Is there anyway to change the spacing used in the generated code to spaces instead of tabs? Also, is there anyway to disable the comments generation such as the file header comments etc?

I'm using 2.6 on this project, but i do have 3 if that supports it.

Thanks

Steven

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 02-Feb-2011 09:59:24   

Stevenn wrote:

Hi,

just a curiosity,

Is there anyway to change the spacing used in the generated code to spaces instead of tabs?

No, sorry. Well, you of course could bulk-replace tab with 4 spaces in the template files but IMHO most modern editors can show you a tab as 4 or whatever number of spaces. Besides, generated code is in general left alone.

Also, is there anyway to disable the comments generation such as the file header comments etc? I'm using 2.6 on this project, but i do have 3 if that supports it.

The comments are generated in, because you can use them to generate XML Doc files, as they contain valuable information.

If you want to avoid having the time getting emitted into the generated code (which I think you're after and the reason you ask the question), set 'TdlEmitTimeDateInOutputFiles' in the project properties (bottom option) to false.

Frans Bouma | Lead developer LLBLGen Pro
Stevenn
User
Posts: 30
Joined: 26-Sep-2007
# Posted on: 02-Feb-2011 10:43:46   

Thanks Frans.

Actually, it's just an OCD thing. StyleCop complains about the tabs and the comments so i just wanted to replace it all to get rid of the green and orange warnings. No problem though, like you say, i hardly go into that code.

Cheers

Steven

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 02-Feb-2011 10:44:59   

Can you change the StyleCop rules to get it to stop protesting...?

Matt

Stevenn
User
Posts: 30
Joined: 26-Sep-2007
# Posted on: 02-Feb-2011 10:51:19   

hi,

yep, but then it applies solution wide, so if would ignore those in my normal solution files too.

It's not an issue, just a curiosity. Like Frans suggested, i could just edit all the templates to switch it out if i really, really felt compelled. Just thought there might be an easier way.

Cheers

Steven