Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pycharm html indentation

Tags:

html

pycharm

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?

like image 429
Arash Saidi Avatar asked May 23 '14 14:05

Arash Saidi


People also ask

How do I indent HTML in PyCharm?

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.

Can you type HTML in PyCharm?

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.

How do you indent multiple lines in python PyCharm?

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.

How do I change the tab space in PyCharm?

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.


1 Answers

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.

enter image description here

like image 169
Topka Avatar answered Sep 21 '22 04:09

Topka