How to stop unnecessary indent on a new line?
How do I get Datagrip to stop adding an unnecessary indent on a new line?
For example, I want this….
line 1: -- This is a comment without an unnecessary leading indent
line 2: -- This is comment on a new line WITH an necessary leading ident added by Datagrip
line 3: -- After hitting RETURN
line 4: -- As you can see these unnecessary indents are really annoying and
line 5: -- contribute nothing of value
line 6: -- How do I stop this nonsense so I don't waste my time removing
line 7: -- all of these unnecessary indents in my code?
to be this…
line 1: -- This is a comment without an unnecessary leading indent
line 2: -- This is comment on a new line WITH an necessary leading ident added by Datagrip
line 3: -- After hitting RETURN
line 4: -- As you can see these unnecessary indents are really annoying and
line 5: -- contribute nothing of value
line 6: -- How do I stop this nonsense so I don't waste my time removing
line 7: -- all of these unnecessary indents in my code?
without me constantly going back and removing all of the indents
请先登录再写评论。
Chris1058wright thank you. All of those options are already turned off. Yet I still get automatic indentation.
Aleksandr Molchanov The number of indent,wrap,chop options in the code style section is huge. Asking me to manually list them all seems unreasonable. I have attached my current code style XML.
FWIW, the problem still occurs when I set my current code style to the default settings for Oracle.