Question: How to let android studio align assignment when reformating the code?

Question

How to let android studio align assignment when reformating the code?

Answers 0
Added at 2017-01-02 06:01
Tags
Question

Let's assume we have this code:

int x;
double yyyy;
float zzzzzzzz;

x = 1;
yyyy = 24.5d;
zzzzzzzz = 1.3f;

after I enabled: Settings -> Code Style-> Java -> Wrapping and Braces -> Align Variable in columns and when I press Ctrl+Alt+L it It is reformatted to the following:

int    x;
double yyyy;
float  zzzzzzzz;

x = 1;
yyyy = 24.5d;
zzzzzzzz = 1.3f;

Is there any way to make the result like this:

int    x;
double yyyy;
float  zzzzzzzz;

x        = 1;
yyyy     = 24.5d;
zzzzzzzz = 1.3f;

with equal indents when assignment multi variables like last three lines.

Answers
Source Show
◀ Wstecz