I try to keep my code to 80 chars a line. Long lines get split into two like this:
long long min_prefix_sum =
(prefix_sum[i] - segment_max) + tree.CountNumAtLeast(t);
X ?
The problem is that the indentation is at the question mark ‘?’ above after I press enter, instead of at the ‘X’ where I want it to be. Are there any plugins that can fix this?
Right now I have settings auto_indent = true, smart_indent = true, and I am using the Clang Format plugin to automatically move parts of long lines (>80 chars) onto the next line. I am using Sublime Text 3.1.1.