Started by
rmsandegs
on
Topic category: Feature requests and ideas for MCreator
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
did you lock the code?
Yes, and that's the annoying part. It goes in and messes with your code, regardless of if you've locked it or not.
you could possibly design a mcreator plugin that unformats the code??? (I don't know if this is possible or not)
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...
get someone with a lot of experience (presumably an app developer) to try and develop a plugin
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.
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 :)
No problem ;)