Skip to content

Instantly share code, notes, and snippets.

@crittermike
Last active August 9, 2016 20:34
Show Gist options
  • Save crittermike/306749 to your computer and use it in GitHub Desktop.
Save crittermike/306749 to your computer and use it in GitHub Desktop.
Auto tab size in Gedit
if view.get_insert_spaces_instead_of_tabs():
tabsize = view.get_tab_width()
spaces = ""
for i in range(tabsize):
spaces += " "
after = after.replace("\t",spaces)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment