Page 1 of 1

Indentations in Pretty Print

Posted: Tue May 16, 2006 8:01 pm
by Douha
Hi All,

Is there a way in 7.1 to set the number of spaces that will be used to indent?

I have several files that I look at. When I pretty print them, some will indent with what appears to be almost 10 spaces. Others will only indent with 2 spaces. I am getting others that fit in the middle of that range.

Thanks much,

Doug

Posted: Tue May 16, 2006 9:27 pm
by george
Hi Doug,

oXygen has an option that is enabled by default and it detects automatically the indent used in each file when you open it and uses that when you format and indent the file. To disable that and enforce a specific indent go to Options->Preferences -- Editor -- Format and disable the "Detect indent on open" option then in the same preference page Specify if you want to indent with tabs (otherwise the indenting will be done with spaces) and the indent size.

Best Regards,
George

Posted: Tue May 16, 2006 10:33 pm
by Douha
Thanks so much George. I had looked all over for that. I just didn't recognize it for what it was.

Doug