PyCharm 4.0.0 Web Help

Some features described here are available in the Professional edition only.

PyCharm supports editing of files in the following markup and template languages:

The markup languages and style sheets are integrated into PyCharm and can use the most powerful editing features:

  • Validation and syntax highlighting.
  • Code completion (Ctrl+SpaceCtrl+SpaceCtrl+SpaceCtrl+SpaceAlt+SlashCtrl+SpaceCtrl+Space or Ctrl+Back SlashCtrl+SpaceControl SpaceControl SpaceControl Space).
  • Indentation (Ctrl+Alt+ICtrl+Alt+ICtrl+Alt+ICtrl+Alt+ICtrl+Alt+I or Ctrl+Alt+QCtrl+Alt+ICtrl+Alt+ICtrl+IControl Alt IAlt ⌘ I⌘ I, Ctrl+Alt+LCtrl+Alt+LShift+Alt+LCtrl+Alt+LCtrl+Alt+LAlt+F8 or Ctrl+Alt+FShift+Alt+FCtrl+Alt+L or Ctrl+Shift+FAlt ⌘ LAlt ⌘ LShift ⌘ F).
  • 4.0+ Formatting (Ctrl+Alt+LCtrl+Alt+LShift+Alt+LCtrl+Alt+LCtrl+Alt+LAlt+F8 or Ctrl+Alt+FShift+Alt+FCtrl+Alt+L or Ctrl+Shift+FAlt ⌘ LAlt ⌘ LShift ⌘ F) according to the code style.
  • Intention actions (Alt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+EnterAlt+Enter, Shift+Alt+J or Ctrl+Shift+MAlt EnterAlt Enter⌘ 1).
  • Viewing code structure (Alt+7Alt+7Alt+7Alt+7Alt+7Alt+7Ctrl+7 or Alt+7Alt+7⌘ 7⌘ 7⌘ 7).
  • Navigation in the source code (Ctrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+Alt+G, Escape, Period, Alt+Period or Ctrl+Button1 ClickF12, Shift+F2, Ctrl+B, Ctrl+Button1 Click or Button2 ClickCtrl+B, Ctrl+Button1 Click or Button2 ClickF3 or Ctrl+Button1 Click⌘ B, ⌘ Button1 Click or Button2 Click⌘ B, ⌘ Button1 Click or Button2 ClickF3 or Control Button1 Click).
  • Integrated documentation (Ctrl+Q or Alt+Button2 ClickCtrl+Q or Alt+Button2 ClickCtrl+Q or Alt+Button2 ClickCtrl+Q or Alt+Button2 ClickCtrl+Q or Alt+Button2 ClickCtrl+QCtrl+Q or Alt+Button2 ClickAlt+Button2 Click, Ctrl+Shift+Space or F2F1, Control J or Control Button2 ClickControl J or Control Button2 ClickAlt Button2 Click or F2).
  • Search for usages (Alt+F7Shift+Alt+7Shift+Alt+7Alt+F7Alt+F7 or Shift+Alt+SShift+Alt+F7Alt+F7Ctrl+GAlt F7Alt F7Shift ⌘ G).
  • Commenting and uncommenting lines (Ctrl+Slash or Ctrl+NumPad /Ctrl+Slash or Ctrl+NumPad /Ctrl+Slash or Ctrl+NumPad /Ctrl+Slash or Ctrl+NumPad /Alt+SemicolonCtrl+Slash, Ctrl+NumPad / or Ctrl+ColonCtrl+Slash or Ctrl+Shift+CCtrl+Slash or Ctrl+NumPad /⌘ Slash or ⌘ NumPad /⌘ Slash or ⌘ NumPad /⌘ Slash or ⌘ NumPad /, Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+Slash, Ctrl+Shift+NumPad / or Ctrl+Shift+ColonCtrl+Shift+Slash or Ctrl+Shift+NumPad /Ctrl+Shift+SlashAlt ⌘ Slash, Alt ⌘ NumPad /, Control Shift Slash, Control Shift NumPad /, Shift ⌘ Slash or Shift ⌘ NumPad /Control Shift Slash, Control Shift NumPad /, Shift ⌘ Slash or Shift ⌘ NumPad /Control Shift Slash).
  • Unwrapping and removing tags (Ctrl+Shift+DeleteCtrl+Shift+DeleteCtrl+Shift+DeleteCtrl+Shift+DeleteCtrl+Shift+DeleteCtrl+Shift+DeleteCtrl+Shift+DeleteAlt+RShift ⌘ DeleteShift ⌘ DeleteShift ⌘ Delete).

All these features work if PyCharm successfully locates the DTD or schema file. In this case, all the files are validated against the DTD or schema, and the editing conveniences become available. Without a DTD or schema, only the well-formedness check is possible.

These features for web contents work same way as for the other source files. Refer to the respective topics of the Advanced Editing Features part for the detailed descriptions of procedures, and to Keyboard shortcuts.

PyCharm parses Web contents files according to the following specifications:

  • HTML: specification is configurable in the Default HTML language level in the Schemas and DTDs page of the Settings dialog. By default, specification HTML 4.01 from W3C is assumed.
  • CSS: specification CSS 2.1. The most common selectors are supported: universal selector *, type selectors .a, descendant selectors .a.b, child selectors .a .b, ID selectors #b, pseudo-classes and class selectors DIV.warning.
  • PyCharm uses Xerces 2.6, an XML parser developed by Apache Software Foundation Group.

In this part you will find information that is specific for the web content files only:

See Also

Procedures:

Reference:

Web Resources: