Eclipse/STS shortcut keys for Uppercase and Lowercase
Getting familiar with shortcut keys improve the productivity and Eclipse/STS these shortcut keys help you for changing the case(uppercase and lowercase) type of variable, value, enum, class, etc on the fly.
P.S. Before apply the shortcut keys, you have to select entire value, variable, enum, class, etc.
1. Uppercase
Ctrl + Shift + X is shortcut keys to change any variable, value, etc. to uppercase.
// before
private String someText ="hey, i'm a java developer";
private static final Integer someValue=101;
// after
private String someText ="HEY, I'M A JAVA DEVELOPER";
private static final Integer SOMEVALUE=101;
/**
* Testing with enum
*/
// before
enum Weekend{
saturday,
sunday;
}
// after
enum Weekend{
SATURDAY,
SUNDAY;
}2. Lowercase
Ctrl + Shift + Y is shortcut keys to change any variable, value, etc. to lowercase.
// before
private String someNewText="HEY, I'M A PYTHON DEVELOPER";
private String webSITE="https://websparrow.org";
// after
private String someNewText="hey, i'm a python developer";
private String website="https://websparrow.org";3. References
- Eclipse/STS – Optimize/Remove unused imports shortcut keys
- How to set maximum line length in Eclipse/STS
- How to import Spring Boot project in Eclipse/STS IDE
Similar Posts
- IntelliJ IDEA– Remove/Optimize unused imports shortcut keys
- wamp- Could not execute menu item (internal error): The service has not been started
- How to remove vertical line from editor pane in IntelliJ IDEA
- How to enable Hibernate option in Windows 8?
- Shortcut key for Extract Local Variable in Eclipse/STS