Source file lines highlighted in red in Intellij - intellij-idea

Don't know how, I highlighted some lines in red in a source file inside my project in IntelliJ.
What this is used for? What's the meaning of this?
How can I deactivate it? I tried by closing and reopening the application and didn't work

Were just errors on SQL statements!
I didn't notice them partly because I am more used to underlined code when errors but once solved them, red highlight is gone!

Related

IntelliJ - How to get code visible as it is without suggestions/additions from IntelliJ?

How to get rid of this highlighted part. It is not code but IntelliJ is trying to make this code more readable by suggesting this. It is super irritating
I expect code to be viewed in simple way
I disabled the inlay hints for everything from IntelliJ settings and Now issue is resolved

My classes in project randomly become invisible to other classes in intellij

In my IntelliJ editor, I am facing this trouble that randomly some files becomes invisible to other files using them.
I have tried refreshing the workspace and even rebuilding the project but error won't go away even though the build never complains, the problem would suddenly disappear for a file and reappear for others.
When class is available it should not give red squiggly lines in the editor as it hampers in other code editing tasks.
I found the solution to this problem it's simple
goto File | then select invalidate cache and restart option, it resolved the issue, answering.

TSLint - how to avoid that all my code underlined in red?

I loaded an angular project in ItelliJ and all the files have some code underlined in red.
The same red colour is on the scrollbar on the right.
It seems the code is full of errors, but they are just missing spaces or things like that; the project is correctly builded.
Even comments that don't have a space after the // get underlined in red.
The responsible is TSLint.
This distracts me; I would like to have underlined code only for "real" problems, and maybe yellow suggestion on the left (and not in scrollbar) for missing spaces in comments or import.
I found this (here https://github.com/Microsoft/vscode-tslint/issues/199)
tslint.alwaysShowRuleFailuresAsWarnings
but it's in visualStudio and I don't know where to add this option in intelliJ.
Do you know how to disable this red underlining?
Also another question, if I would disable TSLint, do I loose anything except formatting?
I like to have a well-formatted code, but from the IntelliJ environment I would like to have mostly the syntax errors rather than formatting, at least not in real time (maybe i can run to check the code formatting when I want, as I did until now).
Here the screenshot as requested by the first answer. The settings are ignored, maybe there is a problem in my computer... (TLSint is 5.0.0 by the way)
The editor highlights the errors according to the severity levels specified in the TSLint configuration files by default. You can either set warn as defaultSeverity ({"defaultSeverity": "warn"}) in your tslint.json or override it with a specific severity in IDE settings (Settings | Editor | Inspections | TypeScript | TSLint): uncheck Use rule severity from the configuration file to use the inspection severity for all linter rules:
if I would disable TSLint, do I loose anything except formatting
If you are mostly interested in syntax errors, you can safely disable TSLint

IntelliJ blue line highlight showing

While working with IntelliJ I used a shortcut wrongly and now I have a dark blue highlited line, which means nothing.
It is some sort of marker highlighting.
How can I get rid of it? See image.
If you were stepping through the code while using the debugger, current execution point line would be highlighted in a similar way (though, a different color is used by default):
Stopping the debugger should remove the line.

Xcode code folding issue

After updating Xcode(5.0.1),one of my project files is automatically unfolding the code every time i leave the file or close Xcode.And this weird behavior is bothering me a lot,i already tried to delete and recreate it but didn't worked.
Anyone knows what might be causing this single file to have its code unfolded?
With Xcode-9, this issue is resolved. Code folding is being remembered and saved by Xcode 9 Editor.
Code you have/had folded exact before last source build/save, is automatically stored upon document/file closure. And same will be visible as it was (folded) when you will open document/file next time.
You don't need to do anything (there is no any option in Xcode tool bar to enable or disable) to save your code fold.
There's no way around it. xCode will unfold your code automatically. Period. There is no option to "preserve" code folding. (sad, but true...)