JetBrains has released the latest stable version of its integrated development environment (IDE) PyCharm for the Python programming language. PyCharm is a popular IDE for Python developers on Windows, MacOS and Linux. According to JetBrains’ Python 2019 survey, PyCharm is by far the most used IDE for Python programming, ahead of Microsoft’s Visual Studio Code for Python.
The latest version, PyCharm 2020.1, brings improvements to Git version control, a smoother Python installation on Windows, better web development tools and database improvements as well as updates to the IDE itself.
The first thing to know about the git rebase command is that it has the same purpose as git merge. Both commands allow you to integrate changes from one branch into another. The only difference is the way they work.
Instead of doing a merge, you can do a feature branch rebase on the master branch. This will move the entire feature branch to the tip of the master branch, and all new commits will be integrated into master. However, instead of using a merge commit, the rebase consists in rewriting the project history by creating new commits for each commit of the original branch. The main advantage of the rebase is that your project history will be much cleaner.
This update makes it easier to interactively rebase commits by allowing users to select a commit from the history, right-click on it and choose “interactively rebase from here”.
Other improvements on the version control side :
New VCS validation tool window: if you wish, you can choose to display the validation window as a tool window next to your code.
New branch popup: Usually, when you see a list of things in PyCharm (or one of the other JetBrains IDEs), you can start typing to search in this list. However, not everyone knows about it. Also, JetBrains has added an explicit search field to the branches popup window. The editor has also improved a few other things, such as indications to show if a branch has inbound or outbound validations, and made it easier to update remote branches.
Another minor improvement is PyCharm’s new ability to download and install Git if it is not already present on your computer.
Smarter progress in the code when using the debugger: the PyCharm debugger is an excellent tool that allows you to see what your code really does without modifying it. Previously, if you wanted to see what was happening in the middle of a larger statement, it was sometimes necessary to cut the line to get an intermediate result. This is no longer the case! PyCharm’s smart progression allows you to easily access the call you need. Even better: it is now the default option.
Installing Python from PyCharm: a frequent question that was asked to the support team was “I installed PyCharm, so now how do I execute my code? “The editor has now simplified the handling of Windows. If PyCharm doesn’t find any version of Python installed, it will suggest you to download and install Python from python.org.
Maintain requirements.txt using PyCharm: did you add a library to speed up some tasks? If you use it in your code, it should be in requirements.txt and PyCharm now makes it easier to update this file.
Supports noqa comments to remove inspections: Code linters and inspections are there to make your code look good and make it easier to read when you or someone else needs to review it later. However, sometimes they can be wrong and under these conditions you probably want to remove a false positive. PyCharm now respects “# noqa” comments and removes inspections when specified.
Splittable terminal: it is now easier to execute several commands at the same time and see their output simultaneously: just right-click on the terminal in PyCharm and choose “split vertically”. Of course, you can also choose to split the terminal horizontally if you prefer.
Easy configuration of the status bar: the status bar has always been configurable, but we have just simplified its configuration! With a simple right-click on the status bar, choose exactly what you want to see and what you prefer to hide. This should make it easier for you to work on projects that don’t use spaces well.
Other improvements :
PyCharm helps you to install packages and create new virtualenvs. To ensure a smooth operation on this point, PyCharm gathers a version of pip and setuptools. Before, you had to update them manually to keep them up to date. The editor has now improved this point so that they are always updated in a newly created virtualenvs.
JetBrains has modified the behavior of PyCharm’s interpreter choice for projects where no interpreter has been explicitly chosen.
Enhancements to the editor
JetBrains Mono: This version uses by default JetBrains Mono, a font specially designed for developers.
LightEdit: Python can be used for many small things, such as backup scripts. As your backup script is not part of a project, JetBrains would like to allow you to continue using PyCharm to easily modify it. The new LightEdit mode makes this possible. If you open a file from the explorer or using the CLI charmcharm tool, you can modify a single file without creating a project, with a limited amount of code completion available.
Splittable terminal: it is now easier to execute several commands at the same time and see their output simultaneously: just right-click on the terminal in PyCharm, and choose “split vertically”. Of course, you can also choose to split the terminal horizontally if you prefer.
Easier configuration of the status bar: the status bar has always been configurable, but the editor makes it easier to configure it! Just right-click on the status bar and choose exactly what you want to see and what you prefer to hide. This should make it a little easier to work on projects that use the wrong number of spaces.
Web development (pro only)
Quick fix “Add import” for Django templates
When writing Python code, you can simply type the name of any importable symbol, then use Alt+Enter to have PyCharm import it for you.
Improvement of semi-automatic code entry in Django templates
Another improvement brought to the semi-automatic code entry of the Django model: the verification that PyCharm respects the ‘builtins’ parameter for the model system. You will now benefit from a correct semi-automatic input for all the tags you have configured.
Other improvements :
The Pyramid project switched its project creation to Cookiecutter some time ago, and this operation is now also supported in PyCharm Professional Edition. Just use the ‘New Project’ screen and your new Pyramid project will be created using the official Cookiecutter template.
Database (pro only)
PyCharm Professional Edition comes with all the database features of JetBrains DataGrip, the database administration tool.
Improvement of data export from databases
Data is the new black gold. Sometimes you have to export them. JetBrains offers a brand new export dialog that allows you to easily preview the result of your exported data. Another good news, exporting to Excel is now also possible!
SQL script execution configurations
You have a set of SQL files that you want to apply to your database in a defined order? The tool has simplified the operation: just select them all in the project, right click and choose “run”. You can rearrange the files in the Run configuration window that appears.
Download PyCharm 2020.1
Source : JetBrains