I don't usually have any problems with pycharm indentation, could you give an example? Also I think that significant whitespace is amazing. I've seen so much terribly indented code in other languages that I enjoy the piece of mind that at least there is some enforced structure.
Can’t say I’m batting very high. I’ll highlight a block of code and it often won’t indent it correctly so I end up cursing significant white space while I fix it.
out of curiousity, what do you mean you "highlight a block of code and it often won't indent it correctly"? I'm trying to understand your issue since I can't recall ever having an issue with whitespace in Python.
I'm not at my development machine at the moment, but unless I misunderstand the way the auto-indent feature works in Pycharm, you must select the code you want auto-intended first.
Sometimes I'll copy and paste from one part of my application to another and so the indenting is off.
I'm anal retentive, so I always fix the indenting anyways. Sometimes you just want to see what happens with your hacked code though and worry about indenting later.
If the start and end are indented differently, then things tend to go wrong when you paste, I guess because there isn't really a correct answer there, though they could probably do better.
Dude you're using it wrong. Pycharm will even fix poor indentation when pasting from another source as well as smart pasting in general. Let's not forget that reformatting the entire document to be pep8 compliant is like three key strokes or a single button in the menu.
346
u/8105 Jul 25 '18
Use a good editor/IDE. No more indentation errors.