• [PyCharm IDE]
 

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Redirect
locationhttps://www.jetbrains.com/help/pycharm/quick-start-guide.html
delay4
Welcome to PyCharm! This short guide aims to help you get a grip on the PyCharm IDE.

Table of Contents
typeflat
separatorpipe

Before you start…

  • Make sure that at least one Python interpreter, version from 2.4 to 3.4 is properly installed on your computer.
  • Mind that PyCharm is available in two editions: Community and Professional. The difference between the editions is explored in Edition Comparison Matrix.

...

When a project is already created, you can change its settings at any moment. Configuring settings for the current project will be discussed a little bit later, in the section Customize everything for your project!.

Finally, you can show or hide actually all the UI elements: toolbar buttons, main menu, main toolbar (menu View); PyCharm also enables you to choose viewing mode. Refer to the documentation for details:

...

As you see, this way one can search among the actions, settings, files, IDE components, and more. Note that it is just one of the numerous navigation features. We’ll return to the PyCharm’s search and navigation facilities a little bit later.

Anchor
customize
customize
Customize everything for your project!

...

You can use Python interpreters of the following types:

Anchor
namelocal
Local interpreter

...

What makes PyCharm stand out from the numerous IDEs, is its full-featured editor. Whatever you do for developing your source code, PyCharm is always at hand, helping you create error-free applications. Here is a brief outline of the smart PyCharm's coding assistance:

  • At every stage of development, use code completion (

    Wiki Markup
    {span:class=shortcut}Ctrl+Space{span}
    ), which takes into account the current context. For example, depending on the place where you invoke code completion, you can complete keywords or code blocks, infer types, or complete methods and properties.
    Refer to the tutorial Code completion and to the product documentation for details.

  • Use live templates/snippets (

    Wiki Markup
    {span:class=shortcut}Ctrl+J{span}
    ) or surround templates (
    Wiki Markup
    {span:class=shortcut}Ctrl+Alt+J{span}
    ) to produce entire code constructs. PyCharm comes with a wide range of ready-to-use live templates, or snippets, which you can explore in the Settings/Preferences dialog (
    Wiki Markup
    {span:class=shortcut}Editor → [Live templates|http://www.jetbrains.com/pycharm/webhelp/live-templates-2.html]{span}
    ).
    If you see that you are lacking something especially important for your development goals, extend this set of snippets with your own ones. Don't also miss the possibility to surround with complete code constructs (
    Wiki Markup
    {span:class=shortcut}Ctrl+Alt+T{span}
    ). Refer to the tutorial Creating and applying live templates (code snippets) and to the product documentation for details.

  • Almost like a pair programmer, PyCharm keeps an eye on what you are currently doing, and comes up with smart suggestions, which are marked with a red Image Modified or yellow Image Modified light bulb sign. If you want to know exactly what is there under the light bulb, click it, or press

    Wiki Markup
    {span:class=shortcut}Alt+Enter{span}
    . This way you can, for example, auto-create a new method that you are already using in the code, but have not yet declared.
    Refer to the tutorial Quick fixes and intention actions once more and product documentation for details.

Use macros

It would be nice to have a chance to simplify your work with the editor. Using macros is just one of the possible ways. Refer to the tutorial Using macros and to the documentation for details.

...

As you type our code, PyCharm, almost like a pair programmer, looks over your shoulder and suggests to fix your errors or just improve your code, by showing you red
or yellow light bulbs (we’ve mentioned them already in the section Write code smartly!). Learn how to use them in the tutorial and in the product documentation.

...

Anchor
goto
goto
Find your way through

Anchor
sourcecode
sourcecode
Source Code

...