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
- Installing RabbitMQ Server
- IntelliJ IDEA – System.out.println shortcut
- Website- How to redirect non www to www in htaccess
- How to define query in JasperReports Server
- How to install Apache 2.4 and PHP 8 on a Windows Machine
- Types of URL pattern supported by Tomcat
- How to show and hide File extension in Windows 7?
- IntelliJ IDEA – Find file containing text shortcut
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- wamp- Could not execute menu item (internal error): The service has not been started