Hello,
I know this is an eternal debate, and everyone writes as they like, but what do you think or use personal styles in your scripts?
I see that officially written code uses spaces around (
)
.
Also what about naming variables?
Many binary files have very common variables, like offsets, count or number of, and size or length.
How do you name them?
I use variableOffset
, variableSize
, variableCount
,
but in the past, I used:
ofsVar
, lenVar
, numVar
.
Also, are there any plans to implement auto formatter? If so, I would like it to use vertical code alignment.
We are planning on adding a code formatter to 010 Editor, but we don’t have any plans to enforce a certain code style for templates or scripts. There’s so many different styles that people use and some people are very particular on their style. We might consider have some recommendations for how to name variables for templates, as you see these in the Template Results panel and it would be nice to have some sort of consistency.
Graeme
SweetScape Software
1 Like
I’m glad to hear about plans to add a code formatter!
If possible, I’m voting for it to have vertical code alignment, so for example, all enum values will be aligned.
You wouldn’t want to see how I name things.
I name things to make sense to me.