Take this snippet:
- Code: Select all
$sw = new-object diagnostics.stopwatch
$testCases = orderVariablesByScriptLine (get-variable -name "*TestCase" `
-scope 1 `
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.