Skip to end of metadata
Go to start of metadata

What this tutorial is about

While developing your source code, you spend the majority of your time in the editor, so it makes sense to explore this tool throughly. In this tutorial, we'll consider some major features of the PyCharm's editor:

To learn more, refer to online help.

What this tutorial is not about

Programming is out of scope of this tutorial. Please refer to the Python and Django documentation.

Before you start

Make sure that:

  • You are working with PyCharm version 2.7 or higher
  • You have created and configured a project.

"10,000-feet look" over the editor

1. This is the editor area - you use it to actually develop your source code.
2. These are the editor tabs. The one that currently has the focus is the active tab. Each tab features a context menu with numerous commands. To learn more about the behavior of the editor tabs, refer to the section Managing Tabs.
3.These are line numbers. The line numbers are shown by default. You can hide them, if required, for the current file in the active editor tab (right-click the numbering and clear the check command Show line numbers), or for all files opened in the editor (Settings | Editor | Appearance - Show line numbers).
4. This is the so called left gutter. You see three different symbols here. These are: the breakpoint, which is used for debugging, and bookmarks, used for navigation.
5. This is the code completion pop-up window.
6. This is the diagnostic balloon. When an error occurs, PyCharm informs you about it with the red curvy line that underlines the erroneous code, an error marker in the right gutter, and a balloon with the detailed description of the problem.
7. To the left of the code completion pop-up, you see the red light bulb. This is the suggested quick fix.
8. This is the right gutter - the bar to the right from the editing area, showing the green, red or yellow box on its top depending on whether your code is okay, or contains errors or warnings. This bar also displays active navigation and error stripes (markers) that let you jump exactly to the erroneous code, changed lines, search results, or TODO items.

Configuring the editor

PyCharm's editor is flexibly configurable. You can change the various aspects of the editor behavior and appearance in the Editor node of the Settings dialog (Ctrl+Alt+S - IDE Settings - Editor).

Here you can find common and general editor options concerning the mouse and scrolling behavior, editor limits, and general error highlighting.

Though default options should work for you, you might want to change something. You can find the descriptions of the editor options here or pressing the "Help" button in the IDE.

For example it might be useful to enable the "Change font size (Zoom) with Ctrl+Mouse Wheel" option which is disabled by default. You also might want to play with the "Autoreparse delay" options, which affects IDE performance.

Now you are ready to read other tutorials, exploring some major PyCharm's editor features:

Your Rating: Results: BrokenPartially brokenWorksStableNo problems at all 3 rates
Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.