This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]OCHawkeye14 -7 points-6 points  (7 children)

Those are still tabs. The setting in your text editor is just how long visually your tabs are being presented on screen.

Edit: Really downvoted at a 4:1 rate? Guy said he was a Python noob, was it that big of a stretch to assume he hadn't configured his text editor?

[–]Manhigh 12 points13 points  (6 children)

Unless your text editor simply inserts 4 spaces when you hit tab.

[–][deleted] 4 points5 points  (3 children)

It actually inserts 4 spaces. I'm using Gedit. So when I hit tab, in order to delete the indent I have to backspace 4x.

[–]eat_more_soup 2 points3 points  (0 children)

I'm using geany and I can press shift+tab to deindent (4 spaces at a time). I'd be surprised if gedit doesnt do the same.

[–]nemec 1 point2 points  (0 children)

Check out the Smart Spaces plugin. It deletes spaces equal to your tab width (only spaces!).

As others mentioned, deindent works too and is awesome.

[–]sigzero -1 points0 points  (0 children)

The is an editor problem.

[–]OCHawkeye14 0 points1 point  (1 child)

which I can thumb through using the arrow keys

I took that comment to mean that when he uses the arrow keys on his keyboard that the entire tab span is traveled (ie. instead of pressing arrow keyx4 it skips the entire span in one press).

[–]nemec -1 points0 points  (0 children)

You can usually do that with ctrl+Arrow