I have seen a lot of open source projects and the majority of their code is formatted like this
local add = 44
local bean = 44
local chicken = 23
Is there a plugin which does this?
I have seen a lot of open source projects and the majority of their code is formatted like this
local add = 44
local bean = 44
local chicken = 23
Is there a plugin which does this?
No, I think they do this so the variables can be easier to read.
If you manage to find a plugin which does this, then formatting your code like this is fine. However, doing this manually is considered bad practice.
“Why is it considered bad practice?”
Formatting your code like this takes time. Not a lot, but still time. Every time you rename one of these variables you must redo this formatting, which takes time again. While it is more readable, it is not worth the extra time and effort it takes to do this.
If you want to change the color of certain words, go to File > Studio Settings > Script Settings
I don’t think they are asking about the colours of the words, at the very least that is not what my response was to.
I was under the impression they wanted to find a plugin which turned
-- Before plugin
local add = 44
local bean = 44
local chicken = 23
into
-- After plugin
local add = 44
local bean = 44
local chicken = 23
Yes, I know, but color is one part of formatting so just in case
Yeah this is what i’m on about