Split variable declaration sequence

Convert declarations with multiple variables into separate declarations for each variable.

Refactoring
P42 for VS Code
P42 for GitHub
Split variable declaration sequence

Convert variable declarations with multiple variables into separate declarations that declare one variable each.

For example,

let a = 2, b;

is converted into

let a = 2;
let b;

Related Code Actions

Learn More

Available In