Community
Participate
Working Groups
Hi, I would greatly appreciate a way to completely disable wrapping in the DefaultCodeFormatter. It should hopefully be as simple as hiding prepareWraps() behind an if statement. The reason for this is we have some really really long lines (~12,000 characters - don't ask) we don't necessarily want wrapped, and simply setting page_width causes the formatter to stall trying to wrap it acceptably. Thanks
Umm, why can't you just work and not invoke the formatter? It's not like it runs automatically (unless you set it up that way). If you have a habit of hitting Ctrl+Shift+F, you can just change this hotkey.
Oh, sorry - you want formatting, but not wrapping. Are you sure it's the wrapping phase that causes stalling? Theoretically, if you set page width to 20000 or something, the formatter should go through the line once to check its length and do nothing if it's within the limit. Can you provide jstack from the time of freeze? The feature you request is not as simple as not calling prepareWraps() - in that case the formatter would remove all existing wraps - I think you can achieve a similar effect by setting all wrapping policies to "Do not wrap".