Please Fix the Way MCreator Reformats Code

Started by rmsandegs on

Topic category: Feature requests and ideas for MCreator

Last seen on 00:30, 24. Aug 2023
Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Please Fix the Way MCreator Reformats Code
Sun, 06/14/2020 - 04:46 (edited)

I use quite a bit of custom code when creating my mod, and I am constantly frustrated when the dreaded "reorganizing code and imports" screen comes up. It truly makes my code completely unreadable. https://imgur.com/a/5YrbIGH

So, after the application is finished having its way with my carefully-spaced code, I have to go back in and manually space it out again. I have done this dozens of times already. This file contains nearly 1000 lines of code that I have to fix.

Needless to say, I absolutely adore MCreator, but sometimes things like this need some ironing out.

Edited by rmsandegs on Sun, 06/14/2020 - 04:46
Last seen on 05:52, 18. Oct 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
did you lock the code?  
Sun, 06/14/2020 - 06:03

did you lock the code?

 

Last seen on 00:30, 24. Aug 2023
Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Yes, and that's the annoying…
Sun, 06/14/2020 - 06:35

Yes, and that's the annoying part. It goes in and messes with your code, regardless of if you've locked it or not.

Last seen on 05:52, 18. Oct 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
you could possibly design a…
Sun, 06/14/2020 - 06:41

you could possibly design a mcreator plugin that unformats the code??? (I don't know if this is possible or not)

 

Last seen on 00:30, 24. Aug 2023
Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I don't know either. I am…
Sun, 06/14/2020 - 07:07

I don't know either. I am very unexperienced when it comes to MCreator plugins. If somebody could write one that fixes this, though, I'd be all for it. I doubt its possibility though...

Last seen on 05:52, 18. Oct 2021
Joined Feb 2018
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
get someone with a lot of…
Sun, 06/14/2020 - 09:37

get someone with a lot of experience (presumably an app developer) to try and develop a plugin

When you lock code, code…
Sun, 06/14/2020 - 10:35

When you lock code, code will no longer be formatted as long as you don't request formatting. Are you sure you locked the code?

The formatting library I use does not support lenient formatting. Actually it does, but it is very buggy.

EDIT: Locked code gets formatted, I will fix this.

Last seen on 00:30, 24. Aug 2023
Joined May 2014
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Thank you very much! Sorry…
Sun, 06/14/2020 - 16:15

Thank you very much! Sorry if I came off a bit snappy in my initial post but this has been bothering me for some time. Kudos to you for being on top of this :)