Code formatting

Gtuner IV general support. Operation, questions, updates, feature request.

Code formatting

Postby lavarsicious » Wed Apr 17, 2019 3:39 pm

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.
lavarsicious
Private First Class
Private First Class
 
Posts: 3
Joined: Mon Dec 31, 2018 4:43 pm

Re: Code formatting

Postby UK_Wildcats_Fans » Wed Apr 17, 2019 3:59 pm

What do you consider to be automatic code formatting?
User avatar
UK_Wildcats_Fans
Brigadier General
Brigadier General
 
Posts: 2070
Joined: Thu Jan 08, 2015 6:53 pm
Location: San Diego, California USA

Re: Code formatting

Postby lavarsicious » Wed Apr 17, 2019 4:23 pm

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.
lavarsicious
Private First Class
Private First Class
 
Posts: 3
Joined: Mon Dec 31, 2018 4:43 pm

Re: Code formatting

Postby J2Kbr » Thu Apr 18, 2019 2:33 pm

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.
ConsoleTuner Support Team
User avatar
J2Kbr
General of the Army
General of the Army
 
Posts: 17313
Joined: Tue Mar 18, 2014 1:39 pm

Re: Code formatting

Postby lavarsicious » Thu Apr 18, 2019 4:33 pm

Submitted to the list, thanks!
lavarsicious
Private First Class
Private First Class
 
Posts: 3
Joined: Mon Dec 31, 2018 4:43 pm

Re: Code formatting

Postby Buffy » Fri Apr 19, 2019 9:26 am

User avatar
Buffy
Sergeant Major of the Army
Sergeant Major of the Army
 
Posts: 254
Joined: Wed Jul 20, 2016 5:23 am


Return to Gtuner IV Support (Titan Two)

Who is online

Users browsing this forum: No registered users and 2 guests