Idea X - Soft wraps

1. Icon is not visible on some LCD monitors - color should be configurable in the editor setting similar to other keywords etc.
2.This useful option should be enabled/disabled by context e.g. enable soft wrap in the console window and HTML but disable in Java code
3. Would suggest some option similar to code folding show some plus sign with popup on mouse hover

6 comments
Comment actions Permalink

Hi Vladimir,

  1. IDEA uses color configured for 'right margin' during soft wraps sign drawings at the moment (check IDEA Settings -> Editor -> Colors & Fonts -> General). There will be dedicated 'soft wrap color' option;
  2. We're going to allow distinct soft wraps setup for console and editor. What is the rationale to provide separate per-language configuration?
  3. Can I ask you to clarify what are exact options you suggest to add for soft wraps? Also it's not clear what is the purpose of 'plus sign' and where it is supposed to be located. The same is true for popup - what kind of information it is expected to contain and what is the triggering condition for its appearence;


Denis

0
Comment actions Permalink

1. Thanks
2. Soft wrap might be ok in java, properties and shell files but could be problematic in HTML/XML files, at least in my opinion. Console is differently should be treated separately as you mentioned already.
3. I would like to have the beginning of the line (whatever feets) to be displayed in normal way and then to have some indicator saying that that there is more(maybe some arrow icon, you guys know better) then I can hoover over the icon to see the remaining part of the line. If I click then the folding opens up (either in folded or regular formatting, (maybe with the option to allow an edit) then it can collapse back. I would consider to put folding icon on the left side like you have plus sign for code section folding. The idea is that when you have a long if statement it could be difficult to read it when it is been folded.
Another stupid idea would be to display code in yellow popup with a smaller font to preserve the code structure similar to Ctrl+Shift+I

Just choose whatever make sense from the above :)

Thanks,
--Vladimir

0
Comment actions Permalink

Another question I have is regarding the code formating when soft wrap is turned on, should it behave differently?

0
Comment actions Permalink

2. Well, I can say that our web devs say that it's really cool to say soft wraps within *.xml/*.html files :) Anyway, we're going to provide easy way to switch soft wraps modes for the editor, i.e. there will be dedicated tool icon that allows switches by single mouse click. Looks like that solves the problem;
3. You're talking about folding functionality here (collapsed regions, their indicators, popups with collapsed text etc). Soft wraps idea is to allow user to see long lines that overwise would exceed visual area width;

P.S. I see that you like an idea of code folding, so, here is a trick you may be not aware about - you can select any code at IDEA editor and press 'Ctrl+.' - it creates folded region on the fly.

0
Comment actions Permalink

Code formatting functionality doesn't know anything about soft wraps, i.e. it works with the code as is and soft wraps are applied to the reformatted code after that if necessary.

0
Comment actions Permalink

I'm aware of CTRL+. thanks anyway.

The problem with soft breaks is that it affects the code layout, I just was thinking that some times I might not care about the entire line and when I do then should be able to see remaining part by hoovering mouse over the indicator showing there is some more stuff to read.

Having switch icon on the top of the editor allowing to turn it on/off is a great idea as well as easier access to turn on/off line numbers and white space chars (may be)

0

Please sign in to leave a comment.