Indentation via Ctrl-i uses tabs even though default is 2-spaces
The default indentation when going to a newline is 2-spaces which is correct (as per the scala style doc http://docs.scala-lang.org/style/indentation.html ). However, the indentation convention is not followed when using Ctrl-i. For example when I open a file, select all the code (Ctrl-a) and then use the indentation command (Ctrl-i) it makes everything tabs instead of spaces.
Open any scala source file.
Ctrl-a to select all the code in the file.
Ctrl-i to apply "correct indentation" feature.
-indentation will have changed to tabs instead of 2-spaces
Steps to reproduce:
Open any scala source file.
Ctrl-a to select all the code in the file.
Ctrl-i to apply "correct indentation" feature.
-indentation will have changed to tabs instead of 2-spaces
Leave a comment
@scenefinale This is a known problem, but I can't find a similar ticket, so thanks for filing a ticket. See this discussion for a workaround https://groups.google.com/forum/#!searchin/scala-ide-user/indentation/scala-ide-user/2oUpuK9WbGc/WVTJzQGyUmcJ
on 2014-03-18 17:45 *
By Simon Schäfer
Assigned to set to Simon Schäfer
Status changed from Accepted to Fixed
Scala editor now considers Scala preference about indentation with tabs
Fixes #1002037, #1001727, #1002017, #1000304
Branch: master
Commit: scala-ide:e616984720
Fixes #1002037, #1001727, #1002017, #1000304
Branch: master
Commit: scala-ide:e616984720
on 2014-03-26 23:40 *
By Simon Schäfer
Version changed from 3.0.2-210 to 4.0.0-211
Status changed from Fixed to Accepted
Unfortunately this is not yet fixed - the Java editor defines another indent action which needs to be overwritten too. I'm on it.
Ticket assignment reverted due to inactivity.