JavaFX CodeFormating

(Difference between revisions)
Line 16: Line 16:
====Category: Alignment====
====Category: Alignment====
-
New Lines:
+
* New Lines:
   "else"
   "else"
   "catch"
   "catch"
   after modifiers
   after modifiers
-
Multiline Alignment:
+
* Multiline Alignment:
   Function Parameters
   Function Parameters
   Binary Operations
   Binary Operations

Revision as of 15:42, 9 November 2009

Contents

JavaFX Code Formatting Specification

Formatting Settings

Menu - Options - Editor - Settings - Formatting

Language: JavaFX

Category: Tabs and Indents

Continuation Indentation Size: 8 Preview: "<javafx code>"

Category: Tabs and Indents

Continuation Edentations Size: 8 Preview: "<javafx code>"

Category: Alignment

  • New Lines:
  "else"
  "catch"
  after modifiers
  • Multiline Alignment:
  Function Parameters
  Binary Operations
  Assignment
  Parenthesized
  Function Call Arguments
  Extends List
  Sequence Initializing
  "if else" Expression (was Ternary Operations in Java)
  For

Preview: "<javafx code>"

Category: Braces

Braces Placement:

  Class Declaration
  Function Declaration
  Object Literal
  On Replace
  Other
  Special "else if" Treatment

Braces Generation:

  "if"
  "for"
  "while"

Preview: "<javafx code>"

Category: Wrapping

  Extends keyword
  Extends list
  Function Parameters
  Function Call Arguments
  Chained Function Calls
  Sequence Initializer
  For
  For Statement 
  If Expression
  While Statement
  Binary Operators
  Assignment Operators
  Type Definition

Preview: "<javafx code>"

Category: Blank Lines

  Before Package
  After Package
  Before Class
  After Class
  After Class Header
  Before Attribute
  After Attribute
  Before Method
  After Method
  Before non-class Expression
  After non-class Expression
  Before non-class Attribute
  After non-class Attribute
  Before non-class Function
  After non-class Function

Preview: "<javafx code>"

Category: Spaces

  Before Keywords
      else
      catch
  Before Parentheses
      Function Declaration
      Function Call
      "if"
      "for"
      "while"
      "catch"
      Object Literal
  Around Operators
      Unary Operator
      Binary Operator
      "if else" Operator
      Assignment Operator
  Before Left Braces
      Class Declaration
      Function Declaration
      Object Literal
      "if"
      "else"
      "for"
      "while"
      "try"
      "catch"
      Class Init Block
      Class Post Init Block
  Within Parentheses
      Parentheses
      Function Declaration
      Function Call
      "if"
      "for"
      "while"
      "catch"
      Type Cast
      Braces
      Sequence Initializer Braces
  Other
      Before Comma
      After Comma
      Before Semicolon
      After Semicolon
      Before Colon
      After Colon
      After Type Cast

Preview: "<javafx code>"

--Manowar 15:38, 9 November 2009 (UTC)

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo