-
Notifications
You must be signed in to change notification settings - Fork 34.6k
Closed
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityon-testplan
Milestone
Description
Problem
Some code actions, such as extract method, may be used very often. This currently requires too many steps:
- Highlight expression to be extracted
- Use
editor.action.quickFix
shortcut - Select
Extract method
from list of quick fixes and press enter.
Desired Flow
User creates a keybinding:
{
"key": "cmd+r,m",
"command": "editor.action.applyQuickFix",
"arguments": ["extract"]
}
- Highlight expression to be extracted
- Press
ctrl+r, m
Complications
-
Multiple extract method options may exist. In this case, I think we'd want to display a list of all possible extract code actions
-
Ideally the same shortcuts should work across languages
Gama11 and Tehnix
Metadata
Metadata
Assignees
Labels
feature-requestRequest for new features or functionalityRequest for new features or functionalityon-testplan