PyCharm
 
Get PyCharm
You are viewing the documentation for an earlier version of PyCharm.

reStructuredText support

Last modified: 08 March 2021

In addition to the support for reStructuredText Docstring Format (PEP 287), PyCharm provides a handy editor for restructured text.

Similarly to the Markdown editor, you can modify reStructuredText files and verify the results in the Preview panel. You can switch between the available editing modes by using the corresponding icons. Editing and preview modes reflect the currently selected PyCharm user interface appearance.

Editor only mode

You can open any existing file with the restructured text or create a new one from scratch.

Let us add some content to see how PyCharm assists editing restructured text.

If you experience any problems previewing your content, try to alter the type of the Preview panel. In the Settings/Preferences dialog Ctrl+Alt+S, navigate to Languages & Frameworks | ReStructrued Text, then select JavaFX or Swing from the Preview panel list, click OK, and resume editing the .rst file.