📜 ⬆️ ⬇️

New PyCharm 2.7 released with Django 1.5 support, improved refactoring and auto-completion

In the latest version of PyCharm 2.7, the development team tried to accommodate the wishes of the community, made some useful improvements and added support for the latest version of Django.

More subject:

Appearance
In version 2.7, PyCharm received a new dark interface (Darcula) interface theme familiar from IntelliJ IDEA 12 .
')


If you are the lucky owner of the new MacBook, then your eyes will be pleased with the new icons designed specifically for Retina screens.

New refactorings
Two new tools have been added that seriously facilitate the work with the code: Change Method Signature and Extract Parameter . The first allows you to quickly and easily update the method signature and its calls in all project files, the second adds a parameter to the method signature, correcting its use in the method.

PEP 8 support
To make it easier to write code in accordance with the recommendations of PEP 8, PyCharm was equipped with a background code inspector that works as you type. Deviations from the standard are highlighted, in each case, you can either reformat the text according to the rules, or disable a specific rule using quick-fix tooltips.

Autocompletion
Auto-completion has become even cleverer: now PyCharm is able to get type information from the debugger during code execution. It is used to improve the quality of autocompletion, code analysis and tooltips. Collecting information about the types can affect the performance of the debugger, so by default it is turned off. It is necessary to enable it in the debugger settings: Settings | Project Settings | Python Debugger | Collect run-time types information for code insight.

TextMate Bundles support
For those who are still thinking whether it’s time to switch from Sublime Text to PyCharm, the PyCharm developers made a pleasant surprise: now it supports exactly the same syntax highlighting based on TextMate Bundles used in Sublime. If you decide that snippets and menu commands also deserve support, make a request to our bug tracker - the developers promise to respond.

More convenient editor
PyCharm rearranges imports in accordance with the PEP 8, i.e., first comes standard, then external, then specific to this project (custom). Unused imports are deleted.

In addition, the Unwrap / Remove action feature has been added in order to extract code from control structures (for example, if ... then ... else ...). The editor supports it not only for Python, but also for JavaScript, HTML, etc.

Deploy in virtual machines
If you are developing your code in a virtual machine using Vagrant , you will be pleased with the PyCharm built-in support for Vagrant: setting up the interaction between IDE and virtual machine has become even easier.

Connecting an external interpreter
In the project properties, you must specify which interpreter will be used - local or remote. A virtual machine running under VirtualBox is also suitable as a remote system. If python’s package management tools are not installed on the selected system, PyCharm will warn you that they need to be installed and, if allowed to do so, will install it.

To connect to a remote system via SSH, you can use the PyCharm integrated SSH console (Tools | Run SSH terminal) - an external SSH client is no longer needed.

Where can I download
Download , try. A 30-day trial period is attached.

Upgrading to version 2.7 is free for anyone who purchased a license after February 7, 2012.

Source: https://habr.com/ru/post/169023/


All Articles