Convert if-else to switch
Convert if-else statement chain with equality comparisons to switch statement.
Refactoring (Convert)
P42 for VS Code
Configuration
- Code Assist ID (for the configuration file):
convert-if-else-to-switch
- You can configure custom keyboard shortcuts with this code action kind:
refactor.convert.p42.convert-if-else-to-switch