Home Download Buy Blog Forum Support

Indentation Annoyance

Indentation Annoyance

Postby guillermooo on Sat May 29, 2010 8:44 am

I'm using the latest beta.

Take this snippet:
Code: Select all
$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.
guillermooo
 
Posts: 723
Joined: Thu Jul 23, 2009 9:06 am

Re: Indentation Annoyance

Postby jps on Mon May 31, 2010 1:13 pm

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.
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: No registered users and 8 guests