Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
robinsalehjan opened this issue Sep 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@robinsalehjan
Copy link
Owner

robinsalehjan commented Sep 27, 2024

What?

The editor action reindentselectedlines works for certain 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 as follows:

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

Screencast

ctrl+I with JSON ctrl+I with Swift
ctrl+i+json ctrl+i+swift
@robinsalehjan robinsalehjan added the bug Something isn't working label Sep 27, 2024
@robinsalehjan robinsalehjan changed the title Replacement for ctrl+I shortcut Replacement for ctrl+i shortcut Sep 27, 2024
@robinsalehjan robinsalehjan changed the title Replacement for ctrl+i shortcut ctrl+i shortcut reindents lines only if there's editor support for it Sep 28, 2024
@robinsalehjan robinsalehjan changed the title ctrl+i shortcut reindents lines only if there's editor support for it ctrl+i shortcut reindents lines if there's editor support for the specific language Sep 28, 2024
@robinsalehjan robinsalehjan changed the title ctrl+i shortcut reindents lines if there's editor support for the specific language ctrl+i shortcut reindents lines only f there's editor support for the specific language Sep 28, 2024
@robinsalehjan robinsalehjan changed the title ctrl+i shortcut reindents lines only f there's editor support for the specific language ctrl+i shortcut reindents lines only if there's editor support for the specific language Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant