I'm not very pleased with the Pycharm auto-indentation when it comes to html-files. Is there a way to configure so that it follows html-standards? Because as it is now tags inside <html>
, <head>
, <body>
and a few more are not indented.
Suggestions?
If you need to adjust indentation settings, in the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Editor | Code Style. On the appropriate language page, on the Tabs and Indents tab, specify the appropriate indents options and click OK.
HTML PyCharm brings powerful support for HTML that includes syntax and error highlighting, formatting according to the code style, structure validation, code completion, on-the-fly preview during a debugging session (Live Edit) or in the dedicated preview tab in the code editor, and much more.
Highlight/ select the lines you want indented, then press TAB as often as needed until they reach the proper indent level. You can remove spaces with SHIFT TAB . You can also use CTRL+ALT+I to auto-indent the selection.
Change the default tab limit PyCharm limits number of tabs that you can open in the editor simultaneously (the default tab limit is 10). In the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Editor | General | Editor Tabs.
You may want to look under Settings -> Project Settings -> Code Style -> HTML
.
There, in Other tab you'll find a setting called Do not indent children of:
I think that's what you need.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With