Skip to content
skyluc edited this page Mar 1, 2013 · 37 revisions

Documentation of Play Support for Scala IDE.

Getting the plug-in

Nightly builds are made available from the Scala IDE download site. The update sites are:

Route Editor

Features

Syntax Highlighting

Different Colors for

  • HTTP method
  • URI static part
  • URI dynamic part
  • Action package part
  • Action class part
  • Action method name part
  • Action method arguments part
  • Comments

Route Syntax Highlighting Preview

Also it has preference page for syntax coloring.

Route Preference Page for Syntax Coloring Preview

Formatter

You can use ctrl+shift+f (command+shift+f) to format your route file.

Route Formatter Preview

You can modify the spaces between columns in the corresponding preference page.

Route Preference Page for Formatter Preview

Hyperlinking

You can go to declaration of methods of the action part. It will be directed to the appropriate method, by getting the type of arguments.

Route Hyperlinking Preview

Template Editor

Features

Syntax Highlighting

It provides different colors for these partitions of code:

  • HTML Tags: It provides different coloring for attributes, tag name, values, and string literals.
  • Scala Code: It provides different coloring for different tokens of scala.
  • Comment

Template Syntax Highlighting Preview

Also it has preference page for syntax coloring.

Template Preference Page for Syntax Coloring Preview

Error Representation

It shows compilation errors, in two levels.

  • Compiling from template file into scala file.

Template Error Template Preview

  • Compiling result scala file.

Template Error Scala Preview

Text Hover

Whenever you go over each scala element, it will show you the type of that.

Template Text Hover Preview

Hyperlinking

You can hyperlink to elements of another scala file. Hyperlinking for elements of another template file or java file is not supported for the moment.

Template Hyperlinking Preview

Code Completion

By using ctrl+space (command+space!) you can use code completion inside scala part of your code. You cannot use it rightly after '.' or '@'. So you have to enter at least one character of the desired method or class, in order to get the suggested ones.

Template Code Completion Preview

Clone this wiki locally