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.
And if you have a slow computer as a student, you can try getting your free Azure student credits and running a Windows VM on Azure for your dev tools.
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!