Shell indentation doesn't work
I would like to use 4 spaces indentation per level, while 8 spaces should be replaced by a tab.
So a third level indentation would be a tab followed by 4 spaces (12 spaces => 8 + 4).
This doesn't work although I have the following settings in Editor > Code Style > Shell Script:
Indent: [X] Use tab character
Tab size: 8
Indent: 4
It works neither while typing nor with menu option Code / Reformat File.
Please sign in to leave a comment.
I think the spaces and tabs indentation should be equal or multiples, wheras spaces should be lower or equal to tabs.
I assume it is a bit unlucky wording and maybe an option is missing?
" Use spaces until full tab indentation is reached Y/n"
It doesn't seem to work well in .sh scripts indeed while it works as expected in other languages.
Filed it as IDEA-315755.