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
- How to host a website on GitHub
- How to install Activiti Designer plugin in Eclipse/STS
- Website- How to redirect non www to www in htaccess
- How to change Eclipse IDE theme?
- How to show and hide File extension in Windows 7?
- svn: There are unfinished transactions detected
- How to create new role and grant permission to role in JasperReports Server
- The superclass “javax.servlet.http.HttpServlet” was not found on the Java Build Path
- IntelliJ IDEA shortcut for Extract/Introduce Local Variable
- How to enable breadcrumb in Eclipse/STS