Wrapping - right margin

In 896 Aurora build, I am giving Wrapping right Margin value as 100. But it is not working (Line exceeds 100 is not wrapped, instead horizontal scroll bar is coming. Am I missing somewhere? . I feel that line wrap is really a very good feature, I want to see it working.

5 comments
Comment actions Permalink

Yes, you are missing something. The right margin setting is just a visual clue.

If you want IDEA to wrap lines for you, you should enable the various wrapping settings in "IDE Settings -> Code Style -> Work in Progress" tab. All the wrapping options are disabled by default -- the tab name should hint you why :)

0
Comment actions Permalink

You can vote for that feature here:
http://www.intellij.net/tracker/idea/viewSCR?publicId=10589

Jon

Rameshkumar P wrote:

In 896 Aurora build, I am giving Wrapping right Margin value as 100. But it is not working (Line exceeds 100 is not wrapped, instead horizontal scroll bar is coming. Am I missing somewhere? . I feel that line wrap is really a very good feature, I want to see it working.


0
Comment actions Permalink

Even I have given all the option in "Work In Progress" to true. Now those options are working ( I tested only one - method declaration ). But the mail thing is those lines which are not part of the options available in "Work in Progress" , for example a System.out.println with big message or a java doc with big message should get wrapped. But that is not happening.

0
Comment actions Permalink

I think you miss the difference between visual wrapping where the document
is left unchanged and the reformat action that places actual newline
characters. Regarding your example with long message in System.out.println I
wonder if it is correct to automatically determine where to break your
message. Instead, I'd suggest you just press Enter somewhere in the literal
where you find it acceptable to break.

--

Best regards,
Maxim Shafirov
JetBrains, Inc / IntelliJ Software
http://www.intellij.com
"Develop with pleasure!"


"Rameshkumar P" <no_mail@jetbrains.com> wrote in message
news:11883114.1061639129370.JavaMail.itn@is.intellij.net...

Even I have given all the option in "Work In Progress" to true. Now those

options are working ( I tested only one - method declaration ). But the mail
thing is those lines which are not part of the options available in "Work in
Progress" , for example a System.out.println with big message or a java doc
with big message should get wrapped. But that is not happening.


0
Comment actions Permalink

My earlier explanation may not be the suitable one. Now I will give one more example. If you take notepad application, there is one option "Wrap". This will wrap the line in the UI without changing the file content ( meaning without entering new line characters ). The basic idea behind this is to avoid horizontal scroll bar, so that easy reading.

Similarly in the case of System.out.println(), I may have larger font size settings and other may have smaller size, so if I use enter key for breaking the sentence, for the guy who is having smaller fonts, has to vertically scroll to read it.

Hope I have clearly explained what I am having in my mind. If you still feel that this feature is not required, you can drop this.

In the case of extends, implements and other things, the feature has been implemented correctly, meaning the document should be changed ( inserting new line characters ).

I have seen one more feature in the feature list - Dynamic Line Wrapping. What I understand by this feature is that when I type a word which exceeds the right margin ( which is set by the individual user), editor automatically bring the word to the next line, but actually not entering a new line character in the file. Actually I need this feature only.

0

Please sign in to leave a comment.