Skip to content

ctrl+i shortcut reindents lines only if there's editor support for the specific language #3

@robinsalehjan

Description

@robinsalehjan

What?

The action editor.action.reindentselectedlines is only compatible for certain programming languages (works with json but not swift) and as a result, ctrl+i only reindents the selected lines, if there's editor support for the language . This action is now mapped to ctrl+i in package.json:

{
"key": "ctrl+i",
"command": "editor.action.reindentselectedlines",
"when": "editorTextFocus"
},

Screencast

ctrl+I with JSON ctrl+I with Swift
ctrl+i+json ctrl+i+swift

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions