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

4

u/thisusernameismeta Jul 25 '18

Serious advice time:

If you have a good computer to code on, download PyCharm and use that. Since you're a student, you can get the Professional edition. Use PyCharm for bigger projects- ones that have more than a few files, more than a few classes. However, for smaller things, if you don't want to wait the 10 minutes for it to boot up...

Download Sublime or Atom (your call, I use Sublime but have heard Atom is great too). This is just (just?!?) a simple text editor, but has syntax highlighting for just about any language.

On the bottom bar of the window, you can set indentation for tabs or for spaces. If you choose spaces, the editor will insert 4 (or whatever other number it's set to... Choose 4 for python ) spaces every time you press the tab key.

PyCharm should convert your file automatically, but as a student, a good text editor should be plenty good enough for all your needs. I didn't need to start using an IDE until after I graduated and started working.

Sublime/Atom should have ways to convert your whitespace back and forth between tabs and spaces. Choose one and stick to it.

You shouldn't be getting so many indentation errors once you choose a standard for yourself and stick to it.

Good luck!

1

u/DelScipio Jul 26 '18

Try Visual code. It's like sublime but better.

I used sublime for years then tried Visual code and never used sublime again. Everything is more organized, works almost out of the box. Give it a try someday.