Please Fix the Way MCreator Reformats Code

Started by rmsandegs on

Topic category: Feature requests and ideas for MCreator

Active 1 month ago
Joined May 2014
Points:
1036

User statistics:

  • Modifications: 3
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 329
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
Active 3 years ago
Joined Feb 2018
Points:
825

User statistics:

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

did you lock the code?

 

Active 1 month ago
Joined May 2014
Points:
1036

User statistics:

  • Modifications: 3
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 329
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.

Active 3 years ago
Joined Feb 2018
Points:
825

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 136
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)

 

Active 1 month ago
Joined May 2014
Points:
1036

User statistics:

  • Modifications: 3
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 329
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...

Active 3 years ago
Joined Feb 2018
Points:
825

User statistics:

  • Modifications: 2
  • Forum topics: 10
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 136
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.

Active 1 month ago
Joined May 2014
Points:
1036

User statistics:

  • Modifications: 3
  • Forum topics: 24
  • Wiki pages: 0
  • MCreator plugins: 0
  • Comments: 329
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 :)