How to auto align (indent) when pressing Enter after a comma? Follow
After I press Enter, the caret is as follow
, while I expect it is
To achieve the latter, I have to press Tab again. Is there any setting to make the caret align as I expect?
Please sign in to leave a comment.
do you have a 'tab' or 2 spaces between 'select' and column name?
After enter SELECT (from code autocompletion), I get
Then I press Tab (to get more space) and then type in "s.idcompany,". I also want to ask why I got only 1 space when pressing Tab.
Please check what is set here - File | Settings | Editor | Code Style | SQL | <you dialect> -> Tabs and indents.
Here they are
and
If I do not press Tab after "SELECT", i.e. there is only 1 space between "SELECT" and "s.idcompany". Then everything works well.