JavaFX CodeFormating

(Difference between revisions)
(Created page with 'JavaFX Code Formatting Specification. Formatting Settings Menu - Options - Editor - Settings - Formatting Language: JavaFX Category: Tabs and Indents Continuation Indentation…')
Line 1: Line 1:
-
JavaFX Code Formatting Specification.
+
==JavaFX Code Formatting Specification==
-
Formatting Settings
+
===Formatting Settings===
-
Menu - Options - Editor - Settings - Formatting
+
'''Menu - Options - Editor - Settings - Formatting'''
Language: JavaFX
Language: JavaFX
-
Category: Tabs and Indents
+
====Category: Tabs and Indents====
Continuation Indentation Size: 8
Continuation Indentation Size: 8
Preview: "<javafx code>"
Preview: "<javafx code>"
-
Category: Tabs and Indents
+
====Category: Tabs and Indents====
Continuation Edentations Size: 8
Continuation Edentations Size: 8
Preview: "<javafx code>"
Preview: "<javafx code>"
-
Category: Alignment
+
====Category: Alignment====
New Lines:
New Lines:
   "else"
   "else"
Line 32: Line 32:
Preview: "<javafx code>"
Preview: "<javafx code>"
-
Category: Braces
+
====Category: Braces====
Braces Placement:
Braces Placement:
   Class Declaration
   Class Declaration
Line 46: Line 46:
Preview: "<javafx code>"
Preview: "<javafx code>"
-
Category: Wrapping
+
====Category: Wrapping====
   Extends keyword
   Extends keyword
   Extends list
   Extends list
Line 62: Line 62:
Preview: "<javafx code>"
Preview: "<javafx code>"
-
Category: Blank Lines
+
====Category: Blank Lines====
   Before Package
   Before Package
   After Package
   After Package
Line 80: Line 80:
Preview: "<javafx code>"
Preview: "<javafx code>"
-
Category: Spaces
+
====Category: Spaces====
   Before Keywords
   Before Keywords
       else
       else

Revision as of 15:41, 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