💡⚡️ Smartly select range for refactoring under the cursor. Imports great Alt+Enter experience of IntelliJ / Android Studio into VSCode! 🚀
Nearest Quick Fix
Automatically expands selection to the region where at least one code action is available, in contrast to Command+. (or Ctrl+. in Windows) which does not show refactoring actions until selecting a whole expression by hand.
Refactor Shortcuts & Expression Selector
IntelliJ offers shortcut keys for individual refactor actions e.g. extract variable or function.
Picker will be shown to select target expression under the cursor.
Ctrl+Shift+Alt+T (Ctrl+T in IntelliJ)
Extract Local Variable
Extract Constant (including Local Variable)
Extract Function (Extract Method in IntelliJ)
Extract Type Alias
Minimum supported VSCode version is 1.38 (including insider).
Older versions have bug around retrieving code actions, which is fixed in microsoft/vscode#77999.
intelli-refactor.useCompatSelection: Enable this if you are using old refactor extension and getting unexpected No code actions available message after selection expanded. See microsoft/vscode#49024 for detail. Selection will blink while loading actions.