Hi hackers,
I use the Processing build package for ST2 and am having a hard time troubleshooting a specific indentation behavior, and where I can modify this. This question isn’t specifically about the particular package, rather how to troubleshoot something like this. The behavior only happens with this particular package and not any other (say, the Java, language setting).
Here’s the behavior. I type:
if (foo) {
//...
}
With the cursor positioned immediately after the closing brace, as soon as I hit another key, the line with the closing brace becomes suddenly indented, resulting in this:
if (foo) {
//...
} e
Same behavior for a closing brace after an else if and a try, a function’s closing brace, and… any closing brace.
Lastly, the behavior only occurs if I have just typed the brace. After moving the cursor to another line and typing a character, then moving the cursor back to the position after the closing brace, the behavior doesn’t manifest itself once I start typing. In other words, I only see the behavior after a “freshly” created closing brace.
How might I troubleshoot what is causing the unnecessary auto-indent when the snippets menu appears? Where should I look? I have looked in the Syntax/*.tmLanguage file but… what might I be looking for?
Thanks for any insight.