I am using pycharm IDE for python development it works perfectly fine for django code so suspected that converting tabs to spaces is default behaviour, however in python IDE is giving errors everywhere because it can't convert tabs to spaces automatically is there a way to achieve this.
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- How to get the background from multiple images by
- Evil ctypes hack in python
- Correctly parse PDF paragraphs with Python
For selections, you can also convert the selection using the "To spaces" function. I usually just use it via the ctrl-shift-A then find "To Spaces" from there.
ctrl + shift + A => open pop window to select options, select to spaces to convert all tabs as space, or to tab to convert as tab.
This only converts the tabs without changing anything else:
Change the code style to use spaces instead of tabs:
Then select a folder you want to convert in the Project View and use
Code
| Reformat Code.