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
- Website- How to redirect non www to www in htaccess
- Create a Data Source in JasperReports Server
- How to install Maven in Eclipse IDE
- Maven vs. Gradle: A Comparison with Examples
- IntelliJ IDEA – Find file containing text shortcut
- How to import Spring Boot project in Eclipse/STS IDE
- How to create new role and grant permission to role in JasperReports Server
- How to change default Author and Committer in Eclipse Git plugin?
- How to block direct access of File using htaccess
- IntelliJ IDEA– Remove/Optimize unused imports shortcut keys