-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
smartIndent and indentWithTabs not working #612
Comments
There are two sources of confusion here:
|
Thanks! Sorry for the confusion.. These properties do behave a little different than expected though. I'm not sure if this is just me but maybe some mention in the documentation would prevent this question from coming up again |
I'm still running into some problems with |
|
Right, and in the jsbin I called
But I can't get that to work.. The weird thing is that setting |
Ok I put together a jsbin here http://jsbin.com/ihunin/54/edit#preview. I'm not writing this on my usual computer so if I recall correctly, setting |
Describe 'work'. The problem here is likely to be that your expectations of features don't agree to what the manual says. When a keymap points at a string, it will interpret it as a property of |
Right, and I understand that. Neither of them work for me on Safari. In the second one when I hit tab, I get the alert but no indent. Am I misunderstanding what |
Also, when |
What |
Got it, that makes sense now. Thanks! |
Issues codemirror#988, codemirror#742, codemirror#612, etc. show that CodeMirror users tend to: 1. Not find how to make the Tab key insert spaces instead of a tab, 2. Miss how to use extraKeys to easily solve the issue. Adding an example helps them find a solution immediately.
smartIndent and indentWithTabs are not working as expected. See http://jsbin.com/ihunin/34/edit#preview for full explanations and examples. In the first CodeMirror instance, you can see that tabs are inserted instead of spaces and in the second, you can see that smart indentation does not follow the indentation settings and instead just inserts two spaces.
The text was updated successfully, but these errors were encountered: