Airiness
Airiness
is an option that specifies the amount of whitespace and newlines to add or remove.
更多信息和选项
范例
基本范例
CodeFormatter`
CodeFormatter`
Airiness
Airiness
is an option that specifies the amount of whitespace and newlines to add or remove.
更多信息和选项
- Airiness is an option for CodeFormat.
- Airiness can be a value between -1 and 1.
- Airiness of 0 is equivalent to all low-level newline options having value Automatic.
- Airiness of -1 is equivalent to all low-level newline options having value Delete.
- Airiness of 1 is equivalent to all low-level newline options having value Insert.
范例
基本范例 (1)
Needs["CodeFormatter`"]CodeFormat["If[a[], b[], c[]]", Airiness -> 0]CodeFormat["If[a[], b[], c[]]", Airiness -> -1]CodeFormat["If[a[], b[], c[]]", Airiness -> 1]