#eroor

1 messages · Page 1 of 1 (latest)

proud carbon
#

Problem
1 - why i'm getting red under line on the code . My code is correct i'm getting the output also . still red under line

2 - why the hell center line is coming how to hide ?

understanding the intellij idea ..... is sophisticated

arctic relicBOT
#

<@&987246527741304832> please have a look, thanks.

young fulcrum
#
  1. if you hover over it, should give you some idea what's up.
  2. I believe the vertical line is meant to be a cue to keep lines shorter for better readability, maybe you have a larger display or something. I could be wrong here ofc.
fringe plume
#

i dont think you can hide it, but you can extend the text-width property in your IDE's preferences

#

you might be able to recolor it to match the background

cursive flume
#

Anything underlined in red is generally an error and should show up as a dash mark on the right side by the scroll bar (which is cutoff in this screen shot I think) As someone said, hovering over the dash or the code should show a popup as the problem.

#

Problems can be self inflicted if their inspection is changed from 'warning' to 'error' and yet because this is just 'advice' from the IDE, it doesnt affect the compile and operation of the program.

#

So just from experience I would say this is a warning about 'redundant variable' that can be inlined into the System.out.println statement. And this inspection was somehow changed from some lower warning to error.

#

You can see the full list of inspections in Settings->Editor-> Inspections

#

Often you get get to the particular inspection item from hovering over the code in question, choosing 'more actions' from the popup and then choosing the lineitem regarding inspections.

#

The second vertical line is the hard wrap line that the ide will use for code lines that are too long. Currently, jetbrains has broken this feature (and many others!) so that only the default hard wrap and visual cues work. Language specific ones are currently broken until they release build 244.x or something like that. So it is fixed (allegedly) but not released yet (at least for IDEA ultimate).

#

You can also not delete it. The default is set at 120 lines.

#

Settings->Editor->Code Style