Not a few days with you Python tutorial you, I miss you a little, a lot of allies and partners who hurried it, today it out of the Python tutorial , I think is more useful some tips in using PyCharm, the extractor to share for everyone, although there are some just a little configuration, but the configuration is good, but it can save a lot in the course of time. I hope everyone has to help!
File differences, easier than for
Program development in essential artifact, beyond compare certainly be ranked number one.
Although easy to use, but this stuff costs ~
If it is simpler than for a single file, in fact, PyCharm own use.
Click the source file, and then click View -> Compare With ... -> select the destination file
Comparative example, you can see the picture below, UI do or good looking.
Edit unit of a block as
Debut give you small problems, like the following code, if the case does not affect the code, quickly delete the comment after the code behind it?
There are two ways I can think of, if you like this comment as a regular, you can use a regular matching + replacement to achieve.
For this scenario I can think of to easily solved with vim, vim supports block editing, you can select a column unit area and then follow that this is a very common operation uncommented in vim.
Also back PyCharm in the past, you will find that it also supports block editing.
When you hold down the alt (windows) or option (mac), then use the mouse to select, you will find such a marvelous thing.
Intelligent completion, ignoring case
Intelligent search completion, is one of the most attractive features of the IDE.
When your object is to begin with a capital letter, and use lowercase letters when you write code, can not find this function, you have to first switch to uppercase and then enter it again.
How to avoid this embarrassing situation?
Just close match to the case in the configuration.
Results are as follows:
Protect the eyes, start from PyCharm
I remember just graduated into the first company to have a little sister, her own computer configuration useful for the protection of eyes to study it.
Among them wink protection program, what word, excel, file manager, browser, can change the background color, all set over and over.
I must say that a reasonable background color, does have a role to protect the eyes, but personally feel that the most important thing is reasonably timely rest.
Here to teach you how to set the background color guard PyCharm wink, as follows:
Set wink protection, will reduce the value of the Yen PyCharm, which requires you to reap a choice.
Improving PyCharm color values, you can refer to before I wrote this article:
Taught you how to create a face value of ultra-high IDE
Debug remote server code
Under normal circumstances, we are developing and debugging on a personal PC is completed, a problem, open about Pycharm debugger, you will soon be able to find the problem.
But some time, run the code will run environmental projects are dependent, it must be run on the deployment of dependent components related to a server, which directly led to us can not be debugged locally.
For this particular scenario, as far as I know, there are two solutions as follows:
- pdb
- Remote Debugging
About pdb, before also wrote a special article describes how to use, you can click here to view: no GUI code debugging method - pdb
The remote debugging it, is so that we can be on our remote debug server code with graphical interface Pycharm on a PC, and it is not much difference between the local debugging, debugging or how the original is now how to debug.
The difference is that, local debugging does not require pre-configuration, as long as your code is ready, you can always start Debug, and remote debugging requires a lot of front steps.
About this time PyCharm use skills summary, first here, I hope you read proficiency in use at work, is unclear, welcome message Ha! More Python tutorials will continue to update everyone!