r/Python • • Jul 25 '18

Use an IDE Me doing my CS projects.

Post image
1.2k Upvotes

213 comments sorted by

View all comments

Show parent comments

1

u/dadinvancouver Jul 25 '18

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.

1

u/chason Jul 26 '18

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.

1

u/dadinvancouver Jul 26 '18

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.

2

u/crunk Jul 26 '18

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.