Organize imports formating different from format source.
When organizing imports (Command + Shift + O) and having enabled "collapse into single import statement" it will produce code in the following format:
import net.liftweb.http.{Req, PostRequest}
While if you use format (Command + Shift + F) it will reformat (given you make some changes in the mean time) the existing code to the following format:
import net.liftweb.http.{ Req, PostRequest }
I prefer the spaces in front and behind.
import net.liftweb.http.{Req, PostRequest}
While if you use format (Command + Shift + F) it will reformat (given you make some changes in the mean time) the existing code to the following format:
import net.liftweb.http.{ Req, PostRequest }
I prefer the spaces in front and behind.
Leave a comment
(In scala-ide:6bea246f78356cc64726f70e2bdd289e472bb2a4) Pass the user's formatting options to the refactoring library codegen.
At the moment, only for Organize Imports, but more will be added in
the future.
Fixes #1001073
Branch: master
At the moment, only for Organize Imports, but more will be added in
the future.
Fixes #1001073
Branch: master
on 2012-07-02 02:08 *
By Mirko Stocker
(In scala-ide:6bea246f78356cc64726f70e2bdd289e472bb2a4) Pass the user's formatting options to the refactoring library codegen.
At the moment, only for Organize Imports, but more will be added in
the future.
Fixes #1001073
Branch: platform/juno
At the moment, only for Organize Imports, but more will be added in
the future.
Fixes #1001073
Branch: platform/juno
This regressed in 286fd3bf5ba9b81ad52ac7dcbfbc94835e6be074