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

shift + tab remove all tabulation one time #4177

Closed
joubertredrat opened this issue Aug 18, 2016 · 4 comments
Closed

shift + tab remove all tabulation one time #4177

joubertredrat opened this issue Aug 18, 2016 · 4 comments

Comments

@joubertredrat
Copy link

joubertredrat commented Aug 18, 2016

Hi guys,

on test in https://codemirror.net/mode/php/index.html and https://codemirror.net/mode/javascript/index.html indentation with tab works fine as expected, but if you use shift + tab, all indentation is removed one time instead to remove one by one while will pressing shift + tab.

On IDE and editors, is normal to add one indentation if you press tab and remove one indentation if you press shift + tab, but here, if I press tab 4 times, it correctly add 4 indentation and if I press shift + tab 1 time, it remove 4 indentation.

@joubertredrat joubertredrat mentioned this issue Aug 18, 2016
6 tasks
@marijnh
Copy link
Member

marijnh commented Aug 19, 2016

You want ctrl-[. Shift-tab auto-indents the selection.

@marijnh marijnh closed this as completed Aug 19, 2016
@joubertredrat
Copy link
Author

joubertredrat commented Aug 19, 2016

@marijnh I tested here and really ctrl + [ remove tabulation one by one and shift + tab auto-indents the selection.

But this is very strange, because Github, GitLab, Netbeans, Atom, Sublime Text, Brackets, PHPStorm, Visual Studio Code and others, all use shift + tab for remove tabulation one by one, not for auto-indents the selection.

Then I have a question, CodeMirror supports customize what keys will dispatch actions or override actions commands?

@marijnh
Copy link
Member

marijnh commented Aug 19, 2016

Maybe try the manual

@joubertredrat
Copy link
Author

@marijnh worked fine here, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants