Ken Krige
Ken Krige

Reputation: 106

Atom Indent Issue

I have a python tensorflow script that used 2 space indent. My Atom preferences have tab set to default: 2. When I hit enter after a : Atom does a 4 space auto-indent, inconsistent with the rest of the file and with the preferences.

In fact, a fresh install comes with the default set like this:

Atom Tab default

However, if I open a new file and hit the TAB button it tabs 4 spaces. This is bizarre!

I have just started using Atom, so maybe overlooking something obvious, but this is a frustrating problem.

Upvotes: 1

Views: 239

Answers (1)

Ken Krige
Ken Krige

Reputation: 106

IT turns out there are language-specific preferences that override the general editor preferences. These are accessed via Edit > Preferences > Packages > language-python > Settings which is where the tab length was set to 4.

Upvotes: 1

Related Questions