2011-03-10, 19:21
Hello,
I want to start this thread because I have problems with tabs and spaces in my add-ons and I decided to change all my codes to space indent.
As I know TEAM XBMC use two spaces indent in C++. Many people think 2 space is more easy to read the code.
I found this thread and tried reindent.py for my code and it works very well.
I want to know what are you thinking about 2 or 4 spaces. And I want help for add indent option to reindent.py code. Because original code default 4 spaces indent.
If you are interested to add indent option you can find reindent.py HERE.
PS: default 4 spaces indent is on Line 197 and 211.
I want to start this thread because I have problems with tabs and spaces in my add-ons and I decided to change all my codes to space indent.
As I know TEAM XBMC use two spaces indent in C++. Many people think 2 space is more easy to read the code.
I found this thread and tried reindent.py for my code and it works very well.
I want to know what are you thinking about 2 or 4 spaces. And I want help for add indent option to reindent.py code. Because original code default 4 spaces indent.
If you are interested to add indent option you can find reindent.py HERE.
PS: default 4 spaces indent is on Line 197 and 211.