Ask Your Question

Adding spaces between parentheses and arguments

asked 2021-02-11 19:54:01 -0600

smeet's avatar

updated 2021-02-12 07:16:19 -0600

I like to format my code with spaces between parens and args:

def someMethod( self, anArg, anotherArg ):
    someFunction( anotherFunction( 1, 2, 3 ) )

Is it possible to have Wing help with this by auto-completing with this formatting? I couldn't find anything in the preferences.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-02-12 07:20:11 -0600

There isn't any support for that form of spacing now. It's something we could potentially add to the auto-editing features, so I've marked this as a feature request. Auto-formatting will probably always take them away since we just use third party standard Python formatters (pep8, black, or yapf). Black will certainly remove the spaces. I'm not sure if there are options for the others to avoid removing them.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2021-02-11 19:54:01 -0600

Seen: 316 times

Last updated: Feb 12 '21