3

this is my first time using an IDE. I was wondering if its possible, as I've done in vim with imap, to make it so that when I press tab 4 spaces are produced in the editor. If this is possible, please point me how to do it. I'm not super familiar with key symbols so please be as explicit a possible; I poked around the keymap under settings but it was pretty confusing.

bad_coder
  • 11,289
  • 20
  • 44
  • 72
  • 2
    in my case I had to disable Editor Config under Editor -> Code Style -> Enable Editor Config Support, because I unknowingly had a ~/.editorconfig file overriding PyCharm's settings – Elliott Beach Jan 21 '18 at 14:03
  • Else, I think answer from https://stackoverflow.com/questions/11816147/pycharm-convert-tabs-to-spaces-automatically should work. – Elliott Beach Jan 21 '18 at 14:04

1 Answers1

1

You can customize the Tab size in Pycharm. Goto Preference --> Editor --> Code Style --> Python.

Juan
  • 477
  • 4
  • 8
  • It was set to 4 however in my case it puts 3 spaces. If I leave it like that it warns me that it should be 4 spaces. – thanos.a Oct 06 '19 at 15:04