Skip to content

Allow viewing and editing commands with 'args' in the keybindings editor #84072

@mjbvz

Description

@mjbvz

Scenario
We support creating keybindings to trigger specific types of code actions or refactorings like so:

	{
		"key": "shift+ctrl+e",
		"command": "editor.action.codeAction",
		"args": {
			"kind": "refactor.extract",
			"preferred": true
		}
	}

#84033 added IntelliSense for creating keybindings like this in the json based keybindings editor. However at the moment, there is no way to properly view or create or edit keybindings that use args in the keybindings editor.

This is important because we are trying to make code actions (specifically refactorings) more discoverable. I believe that making it easier to setup keybindings for code actions would help with discoverability and also help push refactorings as a bigger part of user's workflows

Feature Request

  • Show the args somewhere in the keybindings editor
  • Let users edit the args in some way (possibly with a UX similar to the settings editor)
  • Let users create new keybindings with args

/cc @misolori Since this would likely require some UX work
/cc @kieferrm For general refactoring discoverability

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions