Indentations in Pretty Print

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Douha
Posts: 17
Joined: Fri Aug 19, 2005 6:02 pm

Indentations in Pretty Print

Post 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
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post 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
Douha
Posts: 17
Joined: Fri Aug 19, 2005 6:02 pm

Post by Douha »

Thanks so much George. I had looked all over for that. I just didn't recognize it for what it was.

Doug
Post Reply