Split variable declaration sequence
Convert declarations with multiple variables into separate declarations for each variable.
RefactoringP42 for VS Code
P42 for GitHub
Convert variable declarations with multiple variables into separate declarations that declare one variable each.
let a = 2, b;
is converted into
let a = 2; let b;
Related Code Actions
- Convert var to let or const
- Split variable declaration and initialization
- Merge variable declaration and initialization