Merge variable declaration and initialization
Convert the initial assignment of a variable into its declaration initializer.
- Code Assist ID (for the configuration file):
- You can configure custom keyboard shortcuts with these code action kinds:
- This code assist provides refactoring suggestions. Learn how to configure the refactoring suggestion visibility.
Related Code Assists
- Split variable declaration and initialization
- Split variable declaration sequence
- Convert let to const