Extract variable: the shortcut in 4 apps
On Mac it is usually Option+Cmd+V (2 of 4 apps); on Windows it is usually Ctrl+Alt+V (3 of 4 apps); on Linux it is usually Ctrl+Alt+V (3 of 4 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| EclipseExtract a local variable | OptionShiftL | AltShiftL | AltShiftL |
| IntelliJExtract variable | OptionCmdV | CtrlAltV | CtrlAltV |
| PyCharmExtract variable | OptionCmdV | CtrlAltV | CtrlAltV |
| WebStormExtract variable | OptionCmdV | CtrlAltV | CtrlAltV |
How the apps compare
- Mac: Option+Cmd+V in PyCharm and WebStorm; Option+Shift+L in Eclipse; Cmd+Option+V in IntelliJ.
- Windows: Ctrl+Alt+V in IntelliJ, PyCharm and WebStorm; Alt+Shift+L in Eclipse.
- Linux: Ctrl+Alt+V in IntelliJ, PyCharm and WebStorm; Alt+Shift+L in Eclipse.
Learn it by pressing it: Eclipse shortcuts practice, IntelliJ shortcuts practice, PyCharm shortcuts practice or WebStorm shortcuts practice.