Ask Your Question

How to turn off 'smart indenting' in a doc string?

asked 2020-04-05 15:46:34 -0600

wpCurious's avatar

updated 2020-04-06 07:18:31 -0600


I tried changing the Tab Key Action, and Smart Tab End, but it has no effect.

Inside a doc string, when I tab after the :param par_01_s:, in order to input a comment, the tab just stops. It won't tab any further, it just stops. In some cases, when the comment already exists, a Tab action results in bringing the entire line to the left margin.

So I can't line up the comments for all of the variables, in the same column.

How do you shut this off? I want to control the placement of the comments, without assistance from the IDE.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-04-06 07:21:09 -0600

It looks like the code that tries to detect whether you're at the end of the line for "smart tab" is not working right within docstrings, probably because it is failing to differentiate the case of being within a logical line from being at the end of a logical line. We'll try to fix this soon.

For now, a way to work around this would be to press Ctrl-T when you want a tab character.

edit flag offensive delete link more


Will do, thanks.

wpCurious's avatar wpCurious  ( 2020-04-06 08:52:58 -0600 )edit

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: 2020-04-05 15:46:34 -0600

Seen: 619 times

Last updated: Apr 06 '20