Config Key : align_assignments
Description : If lists of assignments or properties should be vertically aligned for faster and easier reading.
Available since version : 0.7.0 (Current:  
Type : boolean
Default : false
Languages : C# , EJS , JSX , Java , JavaScript , Riot , Swig , Twig , TypeScript 
Beautifiers : Pretty Diff 
Comparison Table 
Carriage Return  = ␍ ; Line Feed  = ␊ ; Tab  = ⇥ ; Whitespace  = · .
🚧 Original Code 
using·System;␊
␊
namespace ·VariableDefinition ·{␊
···class ·Program ·{␊
······static·void ·Main(string []·args)·{␊
·········short·a·=·10 ,·a1·=·11 ,·a2·=·22 ;␊
·········int ·b·=·20 ,·b1·=·21 ,·b2·=·32 ;␊
·········double ·c·=·a·+·b;␊
······}␊
···}␊
}␊
🔧 true 
Using Pretty Diff  beautifier:
using·System;␊
␊
namespace ·VariableDefinition ·{␊
··class ·Program ·{␊
····static·void ·Main(string []·args)·{␊
······short·a··=·10 ,␊
······a1·······=·11 ,␊
······a2·······=·22 ;␊
······int ·b····=·20 ,␊
······b1·······=·21 ,␊
······b2·······=·32 ;␊
······double ·c·=·a·+·b;␊
····}␊
··}␊
}␊
How to configure 
A .unibeautify.json file would look like the following:
{
  "C#" : {
    "indent_size" : 2 ,
    "indent_char" : " " ,
    "align_assignments" : true ,
    "beautifiers" : [
      "Pretty Diff" 
    ]
  }
}
Difference from original 
@@ -1,11 +1,15 @@ 
 using·System;␊
 ␊
 namespace·VariableDefinition·{␊
-···class·Program·{␊ 
-······static·void·Main(string[]·args)·{␊ 
-·········short·a·=·10,·a1·=·11,·a2·=·22;␊ 
-·········int·b·=·20,·b1·=·21,·b2·=·32;␊ 
-·········double·c·=·a·+·b;␊ 
-······}␊ 
-···}␊ 
+··class·Program·{␊ 
+····static·void·Main(string[]·args)·{␊ 
+······short·a··=·10,␊ 
+······a1·······=·11,␊ 
+······a2·······=·22;␊ 
+······int·b····=·20,␊ 
+······b1·······=·21,␊ 
+······b2·······=·32;␊ 
+······double·c·=·a·+·b;␊ 
+····}␊ 
+··}␊ 
 }␊
🔧 false 
Using Pretty Diff  beautifier:
using·System;␊
␊
namespace ·VariableDefinition ·{␊
··class ·Program ·{␊
····static·void ·Main(string []·args)·{␊
······short·a·=·10 ,␊
······a1·=·11 ,␊
······a2·=·22 ;␊
······int ·b·=·20 ,␊
······b1·=·21 ,␊
······b2·=·32 ;␊
······double ·c·=·a·+·b;␊
····}␊
··}␊
}␊
How to configure 
A .unibeautify.json file would look like the following:
{
  "C#" : {
    "indent_size" : 2 ,
    "indent_char" : " " ,
    "align_assignments" : false ,
    "beautifiers" : [
      "Pretty Diff" 
    ]
  }
}
Difference from original 
@@ -1,11 +1,15 @@ 
 using·System;␊
 ␊
 namespace·VariableDefinition·{␊
-···class·Program·{␊ 
-······static·void·Main(string[]·args)·{␊ 
-·········short·a·=·10,·a1·=·11,·a2·=·22;␊ 
-·········int·b·=·20,·b1·=·21,·b2·=·32;␊ 
-·········double·c·=·a·+·b;␊ 
-······}␊ 
-···}␊ 
+··class·Program·{␊ 
+····static·void·Main(string[]·args)·{␊ 
+······short·a·=·10,␊ 
+······a1·=·11,␊ 
+······a2·=·22;␊ 
+······int·b·=·20,␊ 
+······b1·=·21,␊ 
+······b2·=·32;␊ 
+······double·c·=·a·+·b;␊ 
+····}␊ 
+··}␊ 
 }␊
 
No example found. Please submit a Pull Request!
 
🚧 Original Code 
const ·a·=·"" ,␊
b·=·"" ,␊
c·=·"" ;
🔧 true 
Using Pretty Diff  beautifier:
const ·a·=·"" ,␊
··b·····=·"" ,␊
··c·····=·"" ;
How to configure 
A .unibeautify.json file would look like the following:
{
  "JSX" : {
    "indent_size" : 2 ,
    "indent_char" : " " ,
    "align_assignments" : true ,
    "beautifiers" : [
      "Pretty Diff" 
    ]
  }
}
Difference from original 
@@ -1,3 +1,3 @@ 
 const·a·=·"",␊
-b·=·"",␊ 
-c·=·""; 
\ No newline at end of file
+··b·····=·"",␊ 
+··c·····=·""; 
\ No newline at end of file
🔧 false 
Using Pretty Diff  beautifier:
const ·a·=·"" ,␊
··b·=·"" ,␊
··c·=·"" ;
How to configure 
A .unibeautify.json file would look like the following:
{
  "JSX" : {
    "indent_size" : 2 ,
    "indent_char" : " " ,
    "align_assignments" : false ,
    "beautifiers" : [
      "Pretty Diff" 
    ]
  }
}
Difference from original 
@@ -1,3 +1,3 @@ 
 const·a·=·"",␊
-b·=·"",␊ 
-c·=·""; 
\ No newline at end of file
+··b·=·"",␊ 
+··c·=·""; 
\ No newline at end of file
 
🚧 Original Code 
public ·class ·Sample ·{public ·static ·void ·main(String []·args)·{␊
····int ·a·=·3 ;␊
····int ·A·=·7 ;␊
····String ·one·=·"" ,·two·=·"" ,·three·=·"" ;␊
··}␊
}
🔧 true 
Using Pretty Diff  beautifier:
public ·class ·Sample ·{public ·static ·void ·main(String []·args)·{␊
····int ·a······=·3 ;␊
····int ·A······=·7 ;␊
····String ·one·=·"" ,␊
····two········=·"" ,␊
····three······=·"" ;␊
··}␊
}
How to configure 
A .unibeautify.json file would look like the following:
{
  "Java" : {
    "indent_size" : 2 ,
    "indent_char" : " " ,
    "align_assignments" : true ,
    "beautifiers" : [
      "Pretty Diff" 
    ]
  }
}
Difference from original 
@@ -1,7 +1,9 @@ 
 public·class·Sample·{␊
 ··public·static·void·main(String[]·args)·{␊
-····int·a·=·3;␊ 
-····int·A·=·7;␊ 
-····String·one·=·"",·two·=·"",·three·=·"";␊ 
+····int·a······=·3;␊ 
+····int·A······=·7;␊ 
+····String·one·=·"",␊ 
+····two········=·"",␊ 
+····three······=·"";␊ 
 ··}␊
 }
\ No newline at end of file
🔧 false 
Using Pretty Diff  beautifier:
public ·class ·Sample ·{public ·static ·void ·main(String []·args)·{␊
····int ·a·=·3 ;␊
····int ·A·=·7 ;␊
····String ·one·=·"" ,␊
····two·=·"" ,␊
····three·=·"" ;␊
··}␊
}
How to configure 
A .unibeautify.json file would look like the following:
{
  "Java" : {
    "indent_size" : 2 ,
    "indent_char" : " " ,
    "align_assignments" : false ,
    "beautifiers" : [
      "Pretty Diff" 
    ]
  }
}
Difference from original 
@@ -1,7 +1,9 @@ 
 public·class·Sample·{␊
 ··public·static·void·main(String[]·args)·{␊
 ····int·a·=·3;␊
 ····int·A·=·7;␊
-····String·one·=·"",·two·=·"",·three·=·"";␊ 
+····String·one·=·"",␊ 
+····two·=·"",␊ 
+····three·=·"";␊ 
 ··}␊
 }
\ No newline at end of file
 
🚧 Original Code 
const ·a·=·"" ,␊
b·=·"" ,␊
c·=·"" ;
🔧 true 
Using Pretty Diff  beautifier:
const ·a·=·"" ,␊
··b·····=·"" ,␊
··c·····=·"" ;
How to configure 
A .unibeautify.json file would look like the following:
{
  "JavaScript" : {
    "indent_size" : 2 ,
    "indent_char" : " " ,
    "align_assignments" : true ,
    "beautifiers" : [
      "Pretty Diff" 
    ]
  }
}
Difference from original 
@@ -1,3 +1,3 @@ 
 const·a·=·"",␊
-b·=·"",␊ 
-c·=·""; 
\ No newline at end of file
+··b·····=·"",␊ 
+··c·····=·""; 
\ No newline at end of file
🔧 false 
Using Pretty Diff  beautifier:
const ·a·=·"" ,␊
··b·=·"" ,␊
··c·=·"" ;
How to configure 
A .unibeautify.json file would look like the following:
{
  "JavaScript" : {
    "indent_size" : 2 ,
    "indent_char" : " " ,
    "align_assignments" : false ,
    "beautifiers" : [
      "Pretty Diff" 
    ]
  }
}
Difference from original 
@@ -1,3 +1,3 @@ 
 const·a·=·"",␊
-b·=·"",␊ 
-c·=·""; 
\ No newline at end of file
+··b·=·"",␊ 
+··c·=·""; 
\ No newline at end of file
 
No example found. Please submit a Pull Request!
 
No example found. Please submit a Pull Request!
 
No example found. Please submit a Pull Request!
 
🚧 Original Code 
const ·a·=·"" ,␊
b·=·"" ,␊
c·=·"" ;
🔧 true 
Using Pretty Diff  beautifier:
const ·a·=·"" ,␊
··b·····=·"" ,␊
··c·····=·"" ;
How to configure 
A .unibeautify.json file would look like the following:
{
  "TypeScript" : {
    "indent_size" : 2 ,
    "indent_char" : " " ,
    "align_assignments" : true ,
    "beautifiers" : [
      "Pretty Diff" 
    ]
  }
}
Difference from original 
@@ -1,3 +1,3 @@ 
 const·a·=·"",␊
-b·=·"",␊ 
-c·=·""; 
\ No newline at end of file
+··b·····=·"",␊ 
+··c·····=·""; 
\ No newline at end of file
🔧 false 
Using Pretty Diff  beautifier:
const ·a·=·"" ,␊
··b·=·"" ,␊
··c·=·"" ;
How to configure 
A .unibeautify.json file would look like the following:
{
  "TypeScript" : {
    "indent_size" : 2 ,
    "indent_char" : " " ,
    "align_assignments" : false ,
    "beautifiers" : [
      "Pretty Diff" 
    ]
  }
}
Difference from original 
@@ -1,3 +1,3 @@ 
 const·a·=·"",␊
-b·=·"",␊ 
-c·=·""; 
\ No newline at end of file
+··b·=·"",␊ 
+··c·=·""; 
\ No newline at end of file