Saturday, August 24, 2013

Solving SciTE indentation problem for Python

I had this annoying problem while coding python using SciTE.
SciTE uses TAB indentation instead of the regular 4 spaces. Moreover, it doesn't stick with the existing indentation of the current file.

To solve this problem:
  1. Go to Options -> Open Global Options File.
  2. Scroll down to #Indentation
  3. Modify the following variables
 indent.size=8
use.tabs=1
#indent.auto=1

to

indent.size=4
use.tabs=0
indent.auto=1

PS: Unfortunately, it does affect all other languages as well. Also, doing the same modifications only in python.properties file doesn't restrict the changes to python files.