14 ms·
In PyCharm can you set the indentation size (# of spaces per tab) per file type? I would like 2 spaces for JavaScript and HTML but 4 for Python.
by Siecje 12y ago
In PyCharm can you set the indentation size (# of spaces per tab) per file type?
I would like 2 spaces for JavaScript and HTML but 4 for Python.
- dyadic 12y agoYes Or, it's certainly possible to have custom formatting rules in IntelliJ and AppCode and I assume that PyCharm is the same.
- vially 12y agoYes, you can. They can be set from: File->Settings->[Project Settings] Code style. You'll then be able to set the indentation level for each filetype separately.
- Siecje 12y agoThanks, I always use the Help -> Find Action to get to settings. I never thought to look under File.