home  

align_assign_span

Properties

  Category: Code alignment options (not left column spaces/tabs)
      Type: numeric [0 .. 5000]
   Default: 0

Description

The span for aligning on '=' in assignments.

0: Don't align (default).

Examples

raw CPP code align_assign_span=0 align_assign_span=3 align_assign_span=4
nameA = 0; varb= 0; fileLength = 0; item_c = 0; //1 3 lines //2 without //3 assignment i = 0; nameA = 0; varb= 0; fileLength = 0; item_c = 0; //1 3 lines //2 without //3 assignment i = 0; nameA = 0; varb = 0; fileLength = 0; item_c = 0; //1 3 lines //2 without //3 assignment i = 0; nameA = 0; varb = 0; fileLength = 0; item_c = 0; //1 3 lines //2 without //3 assignment i = 0;
 

Info

  See also: align_assign_decl_func and align_assign_on_multi_var_defs
  Edited by JEAYNE

Not the best code for this option? See how to improve the .uds file used to generate these examples.