Shortcut key for Extract Local Variable in Eclipse/STS
Alt + Shift + L are the shortcut keys to extract/assigned a piece of code to a local variable in Eclipse/STS for Windows/Linux machines.
Similar Post: IntelliJ IDEA shortcut for Extract/Introduce Local Variable
Follow the below steps:
1. Select the code that you want to extract to a local variable.

2. Press the Alt + Shift + L keys together from the keyboard, a pop-up window will be open, choose a variable name and click on the OK button.

3. Eclipse/STS IDE automatically assigned selected code to the given variable.

References
- Eclipse/STS shortcut keys for Uppercase and Lowercase
- Eclipse/STS – Optimize/Remove unused imports shortcut keys
Similar Posts
- How to delete duplicate rows in Excel
- How to import Maven project in Eclipse
- How to show and hide File extension in Windows 7?
- How to create new user account in Windows 7?
- svn: There are unfinished transactions detected
- How to add local jar files to Maven project
- wamp- Could not execute menu item (internal error): The service has not been started
- How to increase console buffer size in Eclipse/STS
- Maven- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- Microsoft Excel Shortcut Keys List