This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Code formatter for Scala

3 replies
maku
Joined: 2008-10-06,
User offline. Last seen 4 years 4 weeks ago.

Hi,

I would be intersted in using a tool for fomatting my scala source code (I
realized that at least the Scala Eclipse plugin has no formatting
capability)

Is anything available in this area?

TIA

Martin

Naftoli Gugenheim
Joined: 2008-12-17,
User offline. Last seen 42 years 45 weeks ago.
Re: Code formatter for Scala
It doesn't let you format a block of text at a time, but pressing tab at the beginning of a line should format at properly relative to the previous line's indentation, so you can go through a file line by line pressing tab at the beginning of each line.

On Thu, Mar 19, 2009 at 11:22 AM, Martin Kuhn <martin.kuhn@gmx.at> wrote:

Hi,

I would be intersted in using a tool for fomatting my scala source code (I
realized that at least the Scala Eclipse plugin has no formatting
capability)

Is anything available in this area?

TIA

Martin
--
View this message in context: http://www.nabble.com/Code-formatter-for-Scala-tp22601448p22601448.html
Sent from the Scala - User mailing list archive at Nabble.com.


gnufied
Joined: 2008-08-19,
User offline. Last seen 3 years 18 weeks ago.
Re: Code formatter for Scala

On Fri, Mar 20, 2009 at 12:48 AM, Naftoli Gugenheim
wrote:
> It doesn't let you format a block of text at a time, but pressing tab at the
> beginning of a line should format at properly relative to the previous
> line's indentation, so you can go through a file line by line pressing tab
> at the beginning of each line.
>
> On Thu, Mar 19, 2009 at 11:22 AM, Martin Kuhn wrote:
>>
>> Hi,
>>
>> I would be intersted in using a tool for fomatting my scala source code (I
>> realized that at least the Scala Eclipse plugin has no formatting
>> capability)
>>
>> Is anything available in this area?

Or in Emacs

C-x-h and M-x indent-region

works almost perfectly with scala files.

Kris Nuttycombe
Joined: 2009-01-16,
User offline. Last seen 42 years 45 weeks ago.
Re: Code formatter for Scala
Alt-Shift-F does nice formatting in the Netbeans with the Scala plugin.

On Thu, Mar 19, 2009 at 9:22 AM, Martin Kuhn <martin.kuhn@gmx.at> wrote:

Hi,

I would be intersted in using a tool for fomatting my scala source code (I
realized that at least the Scala Eclipse plugin has no formatting
capability)

Is anything available in this area?

TIA

Martin
--
View this message in context: http://www.nabble.com/Code-formatter-for-Scala-tp22601448p22601448.html
Sent from the Scala - User mailing list archive at Nabble.com.


Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland