Convert let to const
Replace let
declarations that have no re-assignment with const
declarations.

Why is this refactoring helpful?
The const
keyword prevents re-assigning the value of the variable. It makes it easier to reason about the code since re-assignment does not need to be considered.
Configuration
- Code Assist ID (for the configuration file):
convert-let-to-const
- You can configure custom keyboard shortcuts with this code action kind:
refactor.convert.p42.convert-let-to-const
- This code assist provides refactoring suggestions. Learn how to configure the refactoring suggestion visibility.
Related Code Assists
- Convert var to let or const
- Merge variable declaration and initialization
- Split variable declaration and initialization
- Split variable declaration sequence