Closed ethinx closed 11 years ago
That seems to be rather an issue of the auto-complete plugin? If I write a = ()
myself and press enter between the parentheses I’ll get:
a = (
*)
Therefore there must be more going on?
I have tried with smartinput, and the behavior is the one the OP expects, not the one the OP sees:
a = (
*
)
Sorry, revise the expect result, just my opinion and I think it would be a better and lazy way :(
a = (*)
Enter
a = (
*)
a = (
'apple',
'pear',*)
Enter
a = (
'apple',
'pear',
*)
Enter
and finish typing, auto-indenta = (
'apple',
'pear',
)
*
*
means the cursor position.
Well, indeed this behavior is definitely not the job of pep8-indent but that of your autocomplete plugin… some probably can be tuned to do what you want.
OK, Thanks all the way :+1:
Just try this plugin and find the plugin can't handle the indent well when auto-complete parenthesis.
Description:
I input
a = ()
and the parenthesis is auto-complete, then pressEnter
, the there will not be indent in the following line:Expect result:
*
means the cursor position.