Hack-a-Day / basic-badge

2018 Hackaday Belgrade Hardware Badge
MIT License
36 stars 8 forks source link

Formatting etc... #12

Closed jaromir-sukuba closed 6 years ago

jaromir-sukuba commented 6 years ago

Hello, we should define what formatting/structure should the sources have. When writing, I'm using Whitesmiths indentation style, tabs (not expanded to spaces) and tab size 4, probably not being the most common style.

Currently, the sources are rather heavy mix of all styles. I tend to write as it comes, not being bothered by particular style (unless it's 1TBS) making code beautification at the end of work, just before releasing. Any ideas?

If none, I'll format it to Whitesmiths or GNU style, tabs expanded to spaces, 4 spaces wide.

szczys commented 6 years ago

Whitesmiths works for me. Looking at MPLAB's setting for that, I think I need to make changes. Does this sound right: uncheck "Expand tabs to spaces" and change tab size and statement continuation to 4?

screenshot from 2018-04-25 09-56-54

jaromir-sukuba commented 6 years ago

Yes, that is correct. Above that, I use to setup the same in "All languages" too. untitled Anyway, I'm not much sensitive about coding style of your contributions - I'm glad for code anyone provides - but I know some people are, so I asked for directions about how to format the final code that is going to be officially released.

szczys commented 6 years ago

Sounds great, I'll make these changes.