Sublime Forum

Indentation Annoyance

#1

I’m using the latest beta.

Take this snippet:

$sw = new-object diagnostics.stopwatch $sw.start() $testCases = orderVariablesByScriptLine (get-variable -name "*TestCase" ` -scope 1 ` -erroraction silentlycontinue)

If I wanted to add a new parameter, the current logic works great. The problem arises when I need to place the cursor at a lower indentation level. If I press tab on the next blank line, the cursor will always be aligned with “-erroraction”.

You can work around this by typing a space first and then pressing tab (translateTabsToSpaces on), but I thought I’d mention this.

The problem seems to be that the magic tag tracking the indentation level isn’t removed when I’ve deleted the suggested indentantion the first time.

0 Likes

#2

You can stop this by removing the binding for ‘reindent’.

I’m not sure there’s a simple way to solve it otherwise, apart from making it smart enough to parse the previous text and determine that the bracket has been closed off.

0 Likes