Sublime Forum

Help needed with weird c++ indentation

#1

Sublime seems to finish indent. Since I am using a snippet, when I press tab to go back to indentation, the tab actually moves my cursor to the end. (see video)
https://www.youtube.com/watch?v=2jljt4HbwGc (issue on 29 sec)

This behavior happens randomly. I think it happens when it highlights something with blue and there are brackets inside. Also with simple declarations and even calling out functions. No idea why it happens. I don’t have much idea with indentation settings, please let me know which configuration is right one for C++ competitive programming

Here is my preferences file

0 Likes

#2

Does it happen in safe mode? I would guess turning off smart_indent causes this behavior.

0 Likes