Before you start
Make sure that you are working with PyCharm version 2.7 or higher. If you still do not have PyCharm, download it from this page. To install PyCharm, follow the instructions, depending on your platform.
How do I choose Look&Feel of my PyCharm?
PyCharm comes with several pre-defined themes. The set of available themes depends on your platform. You can find the theme of your choice in the Appearance page of the Settings/Preferences dialog.
- On the main toolbar, click to open the dialog, and then click Appearance.
- On this page, click the drop-down list , and select the one you like better:
Note the link Reset that appears on top of the dialog box - if you've changed your mind, click it to roll the changes back. Also note the button that becomes enabled when you hover your mouse pointer over it:
You can also change the other settings that define look and feel of your PyCharm, for example, the font family and size, or windows behavior.
- Apply changes. You might be suggested to restart the IDE (for example, when you change theme to or from Darcula):
How do I change color scheme of the editor?
OK, you've changed the theme of your PyCharm, but you are still not happy with the appearance of your code in the editor. For example, you would like another color for the documentation strings. Let's do it.
- Once more, on the main toolbar click to open the Settings/Preferences dialog, expand the node , and then click Colors and Fonts. Note that you cannot change your pre-defined color scheme - you must create its copy first:
- Click the button , and type the name of your new color scheme:
Now this new color scheme becomes editable, and you can proceed with changing it to your taste.
- Expand the node , and find the page with the editor settings for Python:
- First, in the list of language components, locate documentation strings. The preview pane shows a sample docstring with its current settings.
- Suppose, you want to change the font color from dark green to something brighter. To do that, select the check box , and then right-click (or double-click) the color swatch:
- Next, in the Color Picker, choose a color for the docstrings, so they really stand out:
- OK... changes are applied, and you can enjoy the new color:
Difference between the theme and the color scheme of the editor
Mind the difference between the theme (look&feel) and the color scheme of the editor. The former relates to the entire IDE, while the latter relates to the editor only. It is quite possible to have a light theme for the IDE (for example, Default or Alloy), and one of the dark color schemes for the editor (for example, Twilight or Monokai). So doing, all the PyCharm components will be rendered light, and the editor pane will show dark:
Refer to the following documentation pages:
Other topics of this tutorial
|root||PYH:Editing with PyCharm|