Python indentation widths

13 views
Skip to first unread message

Kenneth Beck

unread,
Jan 11, 2021, 1:30:58 PM1/11/21
to LiClipse
I *think* I am using the latest PyDev ver 8.1. In Preferences->General->Editors->AnyEditTools. There I set tabs to spaces, and in the Convert... tab, I enter 2 for Tab width/number of spaces for tabs (first screen shot). Back in the editor, old code with 2-space indents gets warnings, and when I enter new code, it gets auto-indented 4. See attached two screen shots.
I am sure I must be missing a setting somewhere, can someone clue me in?
Screen Shots.pdf

Fabio Zadrozny

unread,
Jan 12, 2021, 6:57:51 AM1/12/21
to Kenneth Beck, LiClipse
Hello Kenneth,

The related setting for PyDev is: `PyDev > Editor > Tabs`.

image.png

Note that with the `Save to ...` you should be able to have different settings for each project.

Best regards,

Fabio

On Mon, Jan 11, 2021 at 3:31 PM Kenneth Beck <nekkceb...@gmail.com> wrote:
I *think* I am using the latest PyDev ver 8.1. In Preferences->General->Editors->AnyEditTools. There I set tabs to spaces, and in the Convert... tab, I enter 2 for Tab width/number of spaces for tabs (first screen shot). Back in the editor, old code with 2-space indents gets warnings, and when I enter new code, it gets auto-indented 4. See attached two screen shots.
I am sure I must be missing a setting somewhere, can someone clue me in?

--
You received this message because you are subscribed to the Google Groups "LiClipse" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liclipse+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/liclipse/aa5f6005-5b1b-43cb-863b-be6008405ed2n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages