Skip to content

Instantly share code, notes, and snippets.

@crittermike
Last active August 9, 2016 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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