Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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