Page 1 of 1

Code formatting

PostPosted: Wed Apr 17, 2019 3:39 pm
by lavarsicious
Is there a way to automatically format code in the GPC script editor?

If the answer is no I'm considering throwing together some external workaround to do this.

Re: Code formatting

PostPosted: Wed Apr 17, 2019 3:59 pm
by UK_Wildcats
What do you consider to be automatic code formatting?

Re: Code formatting

PostPosted: Wed Apr 17, 2019 4:23 pm
by lavarsicious
Nothing fancy, just a simple way to reformat the white space, braces etc. I often find that after I'm done hacking together a new function or combo (especially after pasting code) I spend more than a small amount of time realigning leading white space.

For example, Visual Studio has a basic Format Document (or selection) implementation via CTRL-K, CTRL-D.

Re: Code formatting

PostPosted: Thu Apr 18, 2019 2:33 pm
by J2Kbr
Gtuner IV currently does not have such functionally. We can be working to implement. If possible for you, please add your request to the Gtuner IV GitHub:

https://github.com/J2Kbr/GtunerIV/issues

Thank you.

Re: Code formatting

PostPosted: Thu Apr 18, 2019 4:33 pm
by lavarsicious
Submitted to the list, thanks!

Re: Code formatting

PostPosted: Fri Apr 19, 2019 9:26 am
by Buffy