Align code inside the vertical line after formatting - intellij-idea

When I format the code in intellij with Alt + L the code doesn't align to go inside the vertical line in intellij.
Here is an example what I mean:
This array goes outside the vertical line, there where "test5" starts. When I format it, it will not be broken and go to a new line like this:
How can I set it in so it will format the code inside the line?
I googled it but what i found was only "how to remove the vertical line"

File | Settings | Editor | Code Style | Java, Wrapping and Braces, set the relevant options to Wrap if long:

Related

Intellij change line spaces

When I add a space for the same code line it has 9 spaces, is there a way to change this? The first image is how I have it and the second is how I want.
In Settings > Editor > Code Style > Java:
Under Tabs and Indents you can change your desired indentations.
I think the 'Use indents relative to expression start' option might do what you are looking for, I am not sure.

PhpStorm - how to move divider line

I have a problem with PhpStorm. I'm talking about the line which divide code.
Sometimes I have too much characters in one line and this line move next characters to next line.
I prefer to use Ctrl + Alt + L to format code and this line destroy readability of code.
How can I move this line or even delete it?
You can try setting Hard wrap at value in Settings | Editor | Code Style | HTML to some big number and set Visual guides: accordingly. You can also try disabling Wrap text and setting Wrap attributes to Do not wrap.
Note that you can hide the hard wrap guide line by disabling Show hard wrap guide (configured in Code Style options) in Settings | Editor | General | Appearance, but hiding it won't prevent code from being wrapped (as #LazyOne mentioned in his comment)

Why is Intellij IDEA highlighting text in standard out like a hyperlink?

I am printing out the contents of a shapefile with ordinary printf statements and for some reason Intellij IDEA Ultimate is underlining and coloring blue a fragment of the output as though it thinks it is a hyperlink:
If I hover the mouse over the blue text, the cursor changes to a finger, like it is a hyperlink. Of course, nothing happens if I click it because it is obviously not a hyperlink. What is going on?
It seems to have something to do with the colons. If I delete them, then the text is no formatted. Also if I use only one colon like this:
X: -71.545101 Y 42.345041
Then there is also no formatting. Only if both colons are present does the blue underlining appear.
org.jetbrains.plugins.groovy.execution.filters.GrCompilationErrorsFilterProvider does that using the following pattern: (file:)?(^|[\W])(?<file>(?:\p{Alpha}\:|/)[0-9 a-z_A-Z\-\\./]+): (?<line>[0-9]+).*
Report a bug or disable Groovy plugin.

Intellij Idea Code wrapping when formatted

I am new to Intellij Idea. I didn't find any information on how to wrap the code after certain characters (ex: 150 characters, break the line)
I want to break the code after the vertical line, the following code must come in next line.
Note: I used Reformat code option, but it did just realigned the code with some white spaces etc, but not wrapping up the code. It's difficult to see the end of the code.
You go to Settings (alt+ctrl+s) then select Code Style - General
Here you can configure your margins and if you want the code to wrap after it reaches the end of it

How to force IntelliJ editor to restrict line length?

I have a text file that looks like:
a=12
b=13
c=14
d =15
e = 16
f = 17
Some of the numbers have spaces after them. Some don't. Some have tabs etc.
It seems that when i am in InteliJ's editor any place i click on is well .. clickable.
How can i restrict it by actual line length?
Settings -> Editor -> Allow placement of caret after end of line.
You can set the global code style to do things like put spaces around the assignment operator, and then do a global "reformat code" by selected text, file, or entire project.
I use IntelliJ 12: