-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
“cc” can't automatically indent in .c & .cpp file #3653
Labels
Comments
+1 for all my files. |
hi, my c# file too. |
The same in PHP/Hack files for me. |
I spent a bit of time understanding how this works today: see #1017 (comment). TL;DR is that this isn't our problem - language extensions need to define how indentation works in their respective languages. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
“cc” can't automatically indent.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
After typing "cc" in normal mode, the cursor is expected to be at the indented position.
Screenshots
![image](https://user-images.githubusercontent.com/41834091/55606739-8e9a9e80-57ac-11e9-8810-76866dc1549d.png)
![image](https://user-images.githubusercontent.com/41834091/55606776-ad993080-57ac-11e9-9c96-4b6b449ecf09.png)
before :
after "cc":
Environment (please complete the following information):
Additional context
I have turned on autoindent.
“cc” can indent automatically in .java and .py .json files
only fail to indent in .c/.cpp files
The text was updated successfully, but these errors were encountered: